Skip to content

Commit b8d3ade

Browse files
committed
explicitly assign null
1 parent 48f02eb commit b8d3ade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/parse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const parseArgv = (argv: typeof process.argv) => {
66
argv[2] === 'preview' ||
77
argv[2] === 'development'
88
) {
9-
let deploymentEnv: DeploymentEnv
10-
let varNameList: string[]|null
9+
let deploymentEnv: DeploymentEnv|null = null
10+
let varNameList: string[]|null = null
1111
;[,,deploymentEnv,...varNameList] = argv
1212
if (!varNameList.length) varNameList = null
1313

0 commit comments

Comments
 (0)