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,24 +401,19 @@ function Windows(instance, callback) {
} }
); );
} }
WindowsWriteElevateScript(instance, WindowsWriteExecuteScript(instance,
function(error) { function(error) {
if (error) return end(error); if (error) return end(error);
WindowsWriteExecuteScript(instance, WindowsWriteCommandScript(instance,
function(error) { function(error) {
if (error) return end(error); if (error) return end(error);
WindowsWriteCommandScript(instance, WindowsElevate(instance,
function(error) { function(error) {
if (error) return end(error); if (error) return end(error);
WindowsElevate(instance, WindowsWaitForStatus(instance,
function(error) { function(error) {
if (error) return end(error); if (error) return end(error);
WindowsWaitForStatus(instance, WindowsResult(instance, end);
function(error) {
if (error) return end(error);
WindowsResult(instance, end);
}
);
} }
); );
} }
@ -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 = [];