small lint fixes

This commit is contained in:
MathieuG-P
2024-12-27 21:19:44 +01:00
parent 03f8c7e152
commit 2e71be3413
+2 -2
View File
@@ -1,6 +1,6 @@
import log from 'electron-log';
import { RegDwordValue, RegSzValue } from "regedit-rs"
import { execOnOs } from "../helpers/env.helpers";
import { execOnOs } from "./env.helpers";
import { bootstrap } from 'global-agent';
import { StaticConfigurationService } from "../services/static-configuration.service";
@@ -14,7 +14,7 @@ async function isProxyEnabled(): Promise<boolean>{
if(!key.exists){ throw new Error("Key \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\" not exist"); }
const registryValue = key.values.ProxyEnable as RegDwordValue;
if(!registryValue){ throw new Error("Value \"ProxyEnable\" not exist"); }
return (1 === registryValue.value);
return registryValue.value === 1;
}
async function getProxyServer(): Promise<string>{