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