mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
ImportHandler: anticipated the error checking
No functional changes.
This commit is contained in:
parent
4c2ad68b69
commit
2b8e45e2bd
1 changed files with 6 additions and 3 deletions
|
@ -205,11 +205,14 @@ exports.doImport = function(req, res, padId)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isAscii) {
|
|
||||||
callback();
|
if (!isAscii) {
|
||||||
} else {
|
|
||||||
callback("uploadFailed");
|
callback("uploadFailed");
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
callback();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue