Skip to content

Commit ce9aae2

Browse files
committed
feat: rip out unneeded mixing of truthyness
1 parent c113fa6 commit ce9aae2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,7 @@ function getConfig(userConfig?: Partial<Config>): Config {
369369

370370
if (userConfig === undefined || userConfig.localTesting === undefined) {
371371
const result = getEnvValue(localTestingEnvVar, "false").toLowerCase();
372-
// TODO deprecate 1 for truthy, this shouldn't have been allowed
373-
// but the extension allows it, so we must as well
374-
// @ts-ignore-next-line
375-
config.localTesting = result === "true" || result === "1";
372+
config.localTesting = result === "true";
376373
}
377374

378375
return config;

0 commit comments

Comments
 (0)