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:
parent
b8fb67beb5
commit
0ac70766eb
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue