* Code cleanup and eslint since -- remove unused variables, clean up RegExs, so on...

This commit is contained in:
Bryan Ashby 2018-01-15 12:22:11 -07:00
parent a106050ba3
commit ac1433e84b
112 changed files with 1375 additions and 1898 deletions

View file

@ -59,7 +59,7 @@ class FileAreaWebAccess {
return callback(null); // not enabled, but no error
}
}
],
],
err => {
return cb(err);
}
@ -193,7 +193,7 @@ class FileAreaWebAccess {
getExistingTempDownloadServeItem(client, fileEntry, cb) {
if(!this.isEnabled()) {
return cb(notEnabledError());
}
}
const hashId = this.getSingleFileHashId(client, fileEntry);
this.loadServedHashId(hashId, (err, servedItem) => {
@ -201,10 +201,10 @@ class FileAreaWebAccess {
return cb(err);
}
servedItem.url = this.buildSingleFileTempDownloadLink(client, fileEntry);
servedItem.url = this.buildSingleFileTempDownloadLink(client, fileEntry);
return cb(null, servedItem);
});
});
}
_addOrUpdateHashIdRecord(dbOrTrans, hashId, expireTime, cb) {
@ -219,7 +219,7 @@ class FileAreaWebAccess {
}
this.scheduleExpire(hashId, expireTime);
return cb(null);
}
);
@ -476,7 +476,7 @@ class FileAreaWebAccess {
StatLog.incrementUserStat(user, 'dl_total_bytes', dlBytes);
StatLog.incrementSystemStat('dl_total_count', 1);
StatLog.incrementSystemStat('dl_total_bytes', dlBytes);
return callback(null);
}
],