fix: add no-typeof-undefined rule (#5114)

This commit is contained in:
LongYinan
2023-11-29 04:43:58 +00:00
parent bd488262fa
commit 19c61e051d
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ function boolean(value: string) {
}
export function parseEnvValue(value: string | undefined, type?: EnvConfigType) {
if (typeof value === 'undefined') {
if (value === undefined) {
return;
}