Skip to content

Commit

Permalink
ES5 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
fiznool committed Sep 15, 2016
1 parent 730c9fe commit 22c3136
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/backoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ Backoff.prototype.setNonRetryableErrors = function(errs) {
};

Backoff.prototype.isNonRetryableError = function(err) {
return _.some(this.nonRetryableErrorClasses, cls => err instanceof cls);
return _.some(this.nonRetryableErrorClasses, function(cls) {
return err instanceof cls;
});
};

var BackoffRunner = {};
Expand Down

0 comments on commit 22c3136

Please sign in to comment.