]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix variable assignment
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 8 Jul 2018 08:58:27 +0000 (11:58 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 8 Jul 2018 08:58:27 +0000 (11:58 +0300)
I think `var full = shrt = "";` is `var full = (shrt = "");` effectively, so `full = true`.

.eslintrc.json
interface/js/app/history.js

index 71e2b443d1d3ccb4ae1d5edbd95155232fefcf24..2c32e16a7af2b679ff82f8d1ddf1fa8153f74094 100644 (file)
@@ -72,7 +72,6 @@
         "no-implicit-coercion": "off",
         "no-inline-comments": "off",
         "no-loop-func": "off",
-        "no-multi-assign": "off",
         "no-negated-condition": "off",
         "no-param-reassign": "off",
         "no-redeclare": "off",
index 7677550bd2afc110195b89af90418b10ec55a13c..4a8cddb0c335b950d77d637ea185eba2d51f2077 100644 (file)
@@ -137,7 +137,8 @@ define(["jquery", "footable", "humanize"],
                         return (l > rcpt_lim) ? " … (" + l + ")" : "";
                     }
                     function format_rcpt(smtp, mime) {
-                        var full = shrt = "";
+                        var full = "";
+                        var shrt = "";
                         if (smtp) {
                             full = "[" + item.rcpt_smtp.join(", ") + "] ";
                             shrt = "[" + item.rcpt_smtp.slice(0, rcpt_lim).join(",&#8203;") + more("rcpt_smtp") + "]";