Fix misc problems detected by ESLint

Reformat and clean up issues detected by ESLint.
This commit is contained in:
Hornwitser committed 2020-06-17 20:59:37 +02:00
1 parent 8cb21c5fa8
commit e9f5cae4f0
34 files changed
+132 -189

No files matched your search

+3 -3
View File
@@ -26,7 +26,7 @@ function download(url, file, callback){
// this might be an invalid path!
fs.stat(pathArray.join("/"), (err, stat) => {
if(err){
makeDirectory(pathArray.join("/")).then(()=>{
makeDirectory(pathArray.join("/")).then(() => {
doDownload(url, file, callback);
});
} else {
@@ -82,7 +82,7 @@ let downloadList = [
// initiate folder creations and downloads
function processMkdirRecursive(callback){
let item = directories.shift();
makeDirectory(item).then(()=>{
makeDirectory(item).then(() => {
if(directories.length == 0){
if(callback) callback();
} else {
@@ -92,7 +92,7 @@ function processMkdirRecursive(callback){
}
function processDownloadRecursive(callback){
let item = downloadList.shift();
download(item.url, item.file, item.callback).then(()=>{
download(item.url, item.file, item.callback).then(() => {
if(downloadList.length == 0){
if(callback) callback();
} else {