AWS Plugin: Don't error when no files to load

wikitext-via-macros
Jermolene 2019-03-22 17:27:20 +00:00
rodzic fffd0ee9e1
commit d38b42f7c7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -59,8 +59,8 @@ Command.prototype.subCommands["s3-load"] = function() {
bucket = this.params[2],
filepaths = this.params.slice(3);
// Check parameters
if(!region || !bucket || filepaths.length < 1) {
throw "Missing parameters";
if(!region || !bucket) {
self.callback("Missing parameters");
}
async.eachLimit(
filepaths,