Skip to content

Commit 68361fe

Browse files
committed
fix(utils): resolve when returned null
Signed-off-by: Tobias Gurtzick <[email protected]>
1 parent 90038fc commit 68361fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/temputils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function maybePromised (context, action, params) {
2929
params[params.length++] = r;
3030

3131
if (typeof action === 'function') action = action.apply(context, params);
32-
else action = Promise.resolve();
32+
if (action === null) action = Promise.resolve();
3333

3434
if (isPromise(action)) {
3535
action

0 commit comments

Comments
 (0)