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,
|
||||
function(error) {
|
||||
if (error) return end(error);
|
||||
|
@ -429,8 +426,6 @@ function Windows(instance, callback) {
|
|||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function WindowsElevate(instance, end) {
|
||||
|
@ -547,7 +542,6 @@ function WindowsWriteCommandScript(instance, end) {
|
|||
}
|
||||
|
||||
function WindowsWriteElevateScript(instance, end) {
|
||||
end();
|
||||
// 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.
|
||||
// var script = [];
|
||||
|
|
Loading…
Reference in a new issue