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

View File

@@ -10,7 +10,7 @@ export function applyEnvToConfig(rawConfig: AFFiNEConfig) {
? [config, process.env[env]]
: [config[0], parseEnvValue(process.env[env], config[1])];
if (typeof value !== 'undefined') {
if (value !== undefined) {
set(rawConfig, path, value);
}
}