Simpified boolean check (see fix in prev commit)

This commit is contained in:
DarkCat09 2023-09-25 10:55:06 +04:00
parent a8d4b3a2d3
commit 29e923cce6
No known key found for this signature in database
GPG Key ID: 0A26CD5B3345D6E3

View File

@ -19,12 +19,6 @@ export class ConfigService {
parseBool(value: string | undefined, def: boolean): boolean {
if (!value) return def;
switch (value) {
case "false":
case "0":
return false;
default:
return Boolean(value);
}
return value === "true" || value === "1";
}
}