From 97f21fc116b5c2bb416d8bd212a2ee06ddceee68 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 8 Jul 2018 11:58:27 +0300 Subject: [PATCH] [WebUI] Fix variable assignment I think `var full = shrt = "";` is `var full = (shrt = "");` effectively, so `full = true`. --- .eslintrc.json | 1 - interface/js/app/history.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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") + "]"; -- 2.47.3