From: Alexander Moisseev Date: Fri, 21 Dec 2018 08:21:14 +0000 (+0300) Subject: [WebUI] Remove redundant condition X-Git-Tag: 1.9.0~387^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62d381fdf8086660e03e34ae71155d1e73c87410;p=rspamd.git [WebUI] Remove redundant condition as "success" function is called only when .status is true --- 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"); } }); }