mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
ImportHandler: flattened code
Removed redundant else, no functional changes
This commit is contained in:
parent
fcd88de900
commit
df5618b274
1 changed files with 6 additions and 5 deletions
|
@ -85,13 +85,14 @@ exports.doImport = function(req, res, padId)
|
||||||
if(err || files.file === undefined) {
|
if(err || files.file === undefined) {
|
||||||
if(err) console.warn("Uploading Error: " + err.stack);
|
if(err) console.warn("Uploading Error: " + err.stack);
|
||||||
callback("uploadFailed");
|
callback("uploadFailed");
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//everything ok, continue
|
//everything ok, continue
|
||||||
else {
|
|
||||||
//save the path of the uploaded file
|
//save the path of the uploaded file
|
||||||
srcFile = files.file.path;
|
srcFile = files.file.path;
|
||||||
callback();
|
callback();
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue