Skip to content

Commit

Permalink
fix(utils): resolve when returned null
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
  • Loading branch information
wzrdtales committed Apr 10, 2018
1 parent 90038fc commit 68361fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/temputils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function maybePromised (context, action, params) {
params[params.length++] = r;

if (typeof action === 'function') action = action.apply(context, params);
else action = Promise.resolve();
if (action === null) action = Promise.resolve();

if (isPromise(action)) {
action
Expand Down

0 comments on commit 68361fe

Please sign in to comment.