Skip to content

Commit 070f097

Browse files
author
Alice
committed
made sure to call done for functions that can't run
1 parent 72840c0 commit 070f097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export default class StepFunctionsOfflinePlugin implements Plugin {
358358
if (contextObject) {
359359
if (func instanceof Promise) {
360360
return func.then(async mod => {
361-
if (!mod) return;
361+
if (!mod) return contextObject.done(null, {});
362362
let res;
363363
let err;
364364
try {

0 commit comments

Comments
 (0)