From: Alexander Moisseev Date: Sun, 8 Jul 2018 08:58:27 +0000 (+0300) Subject: [WebUI] Fix variable assignment X-Git-Tag: 1.7.8~21^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97f21fc116b5c2bb416d8bd212a2ee06ddceee68;p=thirdparty%2Frspamd.git [WebUI] Fix variable assignment I think `var full = shrt = "";` is `var full = (shrt = "");` effectively, so `full = true`. --- diff --git a/.eslintrc.json b/.eslintrc.json index 71e2b443d1..2c32e16a7a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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", diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 7677550bd2..4a8cddb0c3 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -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(",​") + more("rcpt_smtp") + "]";