Remove empty WindowsWriteElevateScript() from control flow

This commit is contained in:
Joran Dirk Greef 2019-06-01 10:24:49 +02:00
parent da118e99c3
commit 0012c3a905

View file

@ -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 = [];