Skip to content

Commit

Permalink
Correct linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt committed May 24, 2017
1 parent 9b4551c commit da09334
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions batavia/types/Bool.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,10 @@ Bool.prototype.__lshift__ = function(other) {
}
} else if (types.isinstance(other, types.Int)) {
if (other.valueOf() < 0) {
throw new exceptions.ValueError.$pyclass("negative shift count")
throw new exceptions.ValueError.$pyclass('negative shift count')
}
if (Number.MAX_SAFE_INTEGER < other.valueOf()) {
throw new exceptions.OverflowError.$pyclass("Python int too large to convert to C ssize_t")
throw new exceptions.OverflowError.$pyclass('Python int too large to convert to C ssize_t')
}
if (this.valueOf()) {
this_bool = 1
Expand All @@ -547,10 +547,10 @@ Bool.prototype.__rshift__ = function(other) {
}
} else if (types.isinstance(other, types.Int)) {
if (other.valueOf() < 0) {
throw new exceptions.ValueError.$pyclass("negative shift count")
throw new exceptions.ValueError.$pyclass('negative shift count')
}
if (Number.MAX_SAFE_INTEGER < Math.abs(other.valueOf())) {
throw new exceptions.OverflowError.$pyclass("Python int too large to convert to C ssize_t")
throw new exceptions.OverflowError.$pyclass('Python int too large to convert to C ssize_t')
}
if (this.valueOf()) {
this_bool = 1
Expand Down

0 comments on commit da09334

Please sign in to comment.