Skip to content

Commit

Permalink
Merge pull request #1967 from krisr/kris-silence-warnings
Browse files Browse the repository at this point in the history
Silence Bluebird js warnings
  • Loading branch information
boneskull committed Nov 18, 2015
2 parents 5cc8bdd + 4af3866 commit 67d0fac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/runnable.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ Runnable.prototype.run = function(fn) {
result
.then(function() {
done();
// Return null so libraries like bluebird do not warn about
// subsequently constructed Promises.
return null;
},
function(reason) {
done(reason || new Error('Promise rejected with no or falsy reason'));
Expand Down

0 comments on commit 67d0fac

Please sign in to comment.