mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-09 14:16:17 +02:00
ImportHandler: anticipated the error checking
No functional changes.
This commit is contained in:
parent
4c2ad68b69
commit
2b8e45e2bd
@ -205,11 +205,14 @@ exports.doImport = function(req, res, padId)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isAscii) {
|
||||
callback();
|
||||
} else {
|
||||
|
||||
if (!isAscii) {
|
||||
callback("uploadFailed");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
callback();
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user