mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +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) console.warn("Uploading Error: " + err.stack);
|
||||
callback("uploadFailed");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
//everything ok, continue
|
||||
else {
|
||||
//save the path of the uploaded file
|
||||
srcFile = files.file.path;
|
||||
callback();
|
||||
}
|
||||
//save the path of the uploaded file
|
||||
srcFile = files.file.path;
|
||||
callback();
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue