diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-12-21 11:21:14 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-12-21 11:21:14 +0300 |
commit | 62d381fdf8086660e03e34ae71155d1e73c87410 (patch) | |
tree | 223258d9164fd25e0be6ad4959b13cd38eb4602d /interface | |
parent | c7cfd2308243f49291ee55d40537f9841c4396e0 (diff) | |
download | rspamd-62d381fdf8086660e03e34ae71155d1e73c87410.tar.gz rspamd-62d381fdf8086660e03e34ae71155d1e73c87410.zip |
[WebUI] Remove redundant condition
as "success" function is called only when .status is true
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/upload.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index 466d5d25e..e7ea56cf6 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -52,9 +52,7 @@ define(["jquery"], headers: headers, success: function (json) { cleanTextUpload(source); - if (json[0].status === true) { - rspamd.alertMessage("alert-success", "Data successfully uploaded"); - } + rspamd.alertMessage("alert-success", "Data successfully uploaded"); } }); } |