SEARCH-605

- return resolve missing
This commit is contained in:
Keerthi Niranjan 2018-02-15 14:00:53 +05:30
parent 0ee004ccf1
commit a71a62720d

View File

@ -32,13 +32,13 @@ function checkDiskSpace(path, resolve, reject) {
} }
if (stdout.indexOf("The FSUTIL utility requires that you have administrative privileges.") !== -1) { if (stdout.indexOf("The FSUTIL utility requires that you have administrative privileges.") !== -1) {
// this is temporary until we use the custom exe file. // this is temporary until we use the custom exe file.
return true; return resolve(true);
} }
return reject(new Error("Error : " + error)); return reject(new Error("Error : " + error));
} }
if (stdout.indexOf("The FSUTIL utility requires that you have administrative privileges.") !== -1) { if (stdout.indexOf("The FSUTIL utility requires that you have administrative privileges.") !== -1) {
// this is temporary until we use the custom exe file. // this is temporary until we use the custom exe file.
return true; return resolve(true);
} }
let data = stdout.trim().split("\n"); let data = stdout.trim().split("\n");