diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-09-17 13:45:18 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-09-17 13:45:18 +0300 |
commit | 731af4c2a3f1052a3393d22f9ca6703821fd4429 (patch) | |
tree | 36ade9d697cc92a13201ac4b7b79ffe3c7ef4626 /interface/js/app/history.js | |
parent | 954727f41c7ed5449206f035d4015d30b6c92f13 (diff) | |
download | rspamd-731af4c2a3f1052a3393d22f9ca6703821fd4429.tar.gz rspamd-731af4c2a3f1052a3393d22f9ca6703821fd4429.zip |
[Minor] Remove extra parentheses
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r-- | interface/js/app/history.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 21a6edfc0..1aab72456 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -45,7 +45,7 @@ define(["jquery", "footable", "humanize"], var symbolDescriptions = {}; var escapeHTML = function (string) { - return (String(string)).replace(htmlEscaper, function (match) { + return String(string).replace(htmlEscaper, function (match) { return htmlEscapes[match]; }); }; @@ -83,7 +83,7 @@ define(["jquery", "footable", "humanize"], }); break; default: - if (typeof (item[prop]) === "string") { + if (typeof item[prop] === "string") { item[prop] = escapeHTML(item[prop]); } } |