code cleanup
This commit is contained in:
parent
515163eff4
commit
908e7e033d
@ -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';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user