Skip to content

Commit 4809884

Browse files
committed
Initialise customConfig to undefined in command run function
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 9208816 commit 4809884

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/moody-dodos-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"swagger-typescript-api": patch
3+
---
4+
5+
Initialise `customConfig` to `undefined` in command run function.

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ const generateCommand = defineCommand({
281281
},
282282
},
283283
run: async ({ args }) => {
284-
let customConfig;
284+
let customConfig = undefined;
285285

286286
if (args["custom-config"]) {
287287
try {

0 commit comments

Comments
 (0)