mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
AWS Plugin: Don't error when no files to load
This commit is contained in:
parent
fffd0ee9e1
commit
d38b42f7c7
@ -59,8 +59,8 @@ Command.prototype.subCommands["s3-load"] = function() {
|
|||||||
bucket = this.params[2],
|
bucket = this.params[2],
|
||||||
filepaths = this.params.slice(3);
|
filepaths = this.params.slice(3);
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if(!region || !bucket || filepaths.length < 1) {
|
if(!region || !bucket) {
|
||||||
throw "Missing parameters";
|
self.callback("Missing parameters");
|
||||||
}
|
}
|
||||||
async.eachLimit(
|
async.eachLimit(
|
||||||
filepaths,
|
filepaths,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user