code cleanup

This commit is contained in:
Sebastian Hildebrandt 2026-01-12 21:29:31 +01:00
parent 515163eff4
commit 908e7e033d

View File

@ -319,7 +319,7 @@ function getWindowsDNSsuffixes() {
}); });
return dnsSuffixes; return dnsSuffixes;
} catch { } catch {
return { return {
primaryDNS: '', primaryDNS: '',
exitCode: 0, exitCode: 0,
@ -355,7 +355,7 @@ function getWindowsWiredProfilesInformation() {
const result = execSync('netsh lan show profiles', util.execOptsWin); const result = execSync('netsh lan show profiles', util.execOptsWin);
const profileList = result.split('\r\nProfile on interface'); const profileList = result.split('\r\nProfile on interface');
return profileList; return profileList;
} catch { } catch (error) {
if (error.status === 1 && error.stdout.includes('AutoConfig')) { if (error.status === 1 && error.stdout.includes('AutoConfig')) {
return 'Disabled'; return 'Disabled';
} }