aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/history.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-09-17 13:45:18 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-09-17 13:45:18 +0300
commit731af4c2a3f1052a3393d22f9ca6703821fd4429 (patch)
tree36ade9d697cc92a13201ac4b7b79ffe3c7ef4626 /interface/js/app/history.js
parent954727f41c7ed5449206f035d4015d30b6c92f13 (diff)
downloadrspamd-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.js4
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]);
}
}