Remove empty WindowsWriteElevateScript() from control flow
This commit is contained in:
parent
da118e99c3
commit
0012c3a905
1 changed files with 5 additions and 11 deletions
6
index.js
6
index.js
|
@ -401,9 +401,6 @@ function Windows(instance, callback) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
WindowsWriteElevateScript(instance,
|
|
||||||
function(error) {
|
|
||||||
if (error) return end(error);
|
|
||||||
WindowsWriteExecuteScript(instance,
|
WindowsWriteExecuteScript(instance,
|
||||||
function(error) {
|
function(error) {
|
||||||
if (error) return end(error);
|
if (error) return end(error);
|
||||||
|
@ -430,8 +427,6 @@ function Windows(instance, callback) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function WindowsElevate(instance, end) {
|
function WindowsElevate(instance, end) {
|
||||||
// We used to use this for executing elevate.vbs:
|
// We used to use this for executing elevate.vbs:
|
||||||
|
@ -547,7 +542,6 @@ function WindowsWriteCommandScript(instance, end) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function WindowsWriteElevateScript(instance, end) {
|
function WindowsWriteElevateScript(instance, end) {
|
||||||
end();
|
|
||||||
// We do not use VBScript to elevate since it does not return an error if
|
// We do not use VBScript to elevate since it does not return an error if
|
||||||
// the user does not grant permission. This is here for reference.
|
// the user does not grant permission. This is here for reference.
|
||||||
// var script = [];
|
// var script = [];
|
||||||
|
|
Loading…
Reference in a new issue