mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:46:11 +08:00
REFACTOR: useless conditional as 'data' always evaluates to true (#9685)
This commit is contained in:
parent
99c3ce03cb
commit
265baa40c6
|
@ -99,7 +99,7 @@ export default Mixin.create({
|
|||
});
|
||||
|
||||
$upload.on("fileuploadfail", (e, data) => {
|
||||
if (!data || (data && data.errorThrown !== "abort")) {
|
||||
if (!data || data.errorThrown !== "abort") {
|
||||
displayErrorForUpload(data);
|
||||
}
|
||||
reset();
|
||||
|
|
Loading…
Reference in New Issue
Block a user