Skip to content

Commit

Permalink
fix: dont use super
Browse files Browse the repository at this point in the history
  • Loading branch information
daern91 committed Nov 20, 2018
1 parent 21fdafd commit 9e5ac68
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions src/coffee/errors.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ class HttpError extends Error
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "HttpError"
@statusCode = @body.statusCode if @body.statusCode
@code = @statusCode
Expand All @@ -20,7 +19,6 @@ class SphereError extends Error
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "SphereError"
@statusCode = @body.statusCode if @body.statusCode
@code = @statusCode
Expand All @@ -34,7 +32,6 @@ class GraphQLError extends Error
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "GraphQLError"
@statusCode = @body.statusCode if @body.statusCode
@code = @statusCode
Expand All @@ -48,7 +45,6 @@ class BadRequest extends SphereError
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "BadRequest"
@statusCode = 400
@code = @statusCode
Expand All @@ -62,7 +58,6 @@ class Unauthorized extends SphereError
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "Unauthorized"
@statusCode = 401
@code = @statusCode
Expand All @@ -76,7 +71,6 @@ class NotFound extends SphereError
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "NotFound"
@statusCode = 404
@code = @statusCode
Expand All @@ -90,7 +84,6 @@ class MethodNotAllowed extends SphereError
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "MethodNotAllowed"
@statusCode = 405
@code = @statusCode
Expand All @@ -104,7 +97,6 @@ class ConcurrentModification extends SphereError
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "ConcurrentModification"
@statusCode = 409
@code = @statusCode
Expand All @@ -118,7 +110,6 @@ class InternalServerError extends SphereError
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "InternalServerError"
@statusCode = 500
@code = @statusCode
Expand All @@ -132,7 +123,6 @@ class ServiceUnavailable extends SphereError
# message - {String} The error message
# body - {Object} A JSON object with optional information to pass to the error, like the error response body
constructor: (@message, @body = {}) ->
super()
@name = "ServiceUnavailable"
@statusCode = 503
@code = @statusCode
Expand Down
1 change: 0 additions & 1 deletion src/coffee/sync/category-sync.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class CategorySync extends BaseSync

# Public: Construct a `CategorySync` object.
constructor: ->
super()
# Override base utils
@_utils = new CategoryUtil()

Expand Down
1 change: 0 additions & 1 deletion src/coffee/sync/inventory-sync.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class InventorySync extends BaseSync

# Public: Construct a `InventorySync` object.
constructor: ->
super()
# Override base utils
@_utils = new InventoryUtils

Expand Down
1 change: 0 additions & 1 deletion src/coffee/sync/order-sync.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class OrderSync extends BaseSync

# Public: Construct a `OrderSync` object.
constructor: ->
super()
# Override base utils
@_utils = new OrderUtils

Expand Down
1 change: 0 additions & 1 deletion src/coffee/sync/product-sync.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class ProductSync extends BaseSync

# Public: Construct a `ProductSync` object.
constructor: ->
super()
# Override base utils
@_utils = new ProductUtils

Expand Down

0 comments on commit 9e5ac68

Please sign in to comment.