silence a warning that introduced in bluebird 3.0

see http://bluebirdjs.com/docs/warning-explanations.html#warning-a-promise-was-created-in-a-handler-but-none-were-returned-from-it

Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
Clark Wang 2015-11-24 17:15:53 +08:00
parent b8fb67beb5
commit 0ac70766eb
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ ObserverMixin.notifyObserversOf = function(operation, context, callback) {
var retval = fn(context, next);
if (retval && typeof retval.then === 'function') {
retval.then(
function() { next(); },
function() { next(); return null; },
next // error handler
);
}