From 2e71be34132f069e237f1bf5c19f9ea4dccccfe4 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Fri, 27 Dec 2024 21:19:44 +0100 Subject: [PATCH] small lint fixes --- src/main/helpers/proxy.helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/helpers/proxy.helpers.ts b/src/main/helpers/proxy.helpers.ts index 71f9a366..0a102b13 100644 --- a/src/main/helpers/proxy.helpers.ts +++ b/src/main/helpers/proxy.helpers.ts @@ -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{ 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{