Skip to content

Commit cc4e991

Browse files
committed
fix(update): respect falsy value of onCreate
1 parent 6b37c98 commit cc4e991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/update.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function updateConfig(
3131
opts.configFile + (opts.createExtension || ".ts"),
3232
);
3333
const createResult =
34-
(await opts.onCreate?.({ configFile: configFile })) || true;
34+
(await opts.onCreate?.({ configFile: configFile })) ?? true;
3535
if (!createResult) {
3636
throw new Error("Config file creation aborted.");
3737
}

0 commit comments

Comments
 (0)