From 908e7e033d816be5edd1c83e1c3d4cfc901d3d35 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Mon, 12 Jan 2026 21:29:31 +0100 Subject: [PATCH] code cleanup --- lib/network.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/network.js b/lib/network.js index 85e1d0a..254e6f0 100644 --- a/lib/network.js +++ b/lib/network.js @@ -319,7 +319,7 @@ function getWindowsDNSsuffixes() { }); return dnsSuffixes; - } catch { + } catch { return { primaryDNS: '', exitCode: 0, @@ -355,7 +355,7 @@ function getWindowsWiredProfilesInformation() { const result = execSync('netsh lan show profiles', util.execOptsWin); const profileList = result.split('\r\nProfile on interface'); return profileList; - } catch { + } catch (error) { if (error.status === 1 && error.stdout.includes('AutoConfig')) { return 'Disabled'; }