From: Alexander Moisseev Date: Fri, 21 Sep 2018 06:22:50 +0000 (+0300) Subject: [Minor] Use .forEach instead of .map X-Git-Tag: 1.8.0~45^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2512%2Fhead;p=thirdparty%2Frspamd.git [Minor] Use .forEach instead of .map as we only need to iterate --- diff --git a/.eslintrc.json b/.eslintrc.json index 8f33f636c8..ccd26cc740 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -56,7 +56,6 @@ // Temporarily disabled rules - "array-callback-return": "off", "array-element-newline": "off", "consistent-this": "off", "func-style": "off", diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 2658941886..68e66924ef 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -68,7 +68,7 @@ define(["jquery", "footable", "humanize"], escape_HTML_array(item[prop]); break; case "symbols": - Object.keys(item.symbols).map(function (key) { + Object.keys(item.symbols).forEach(function (key) { var sym = item.symbols[key]; if (!sym.name) { sym.name = key; @@ -156,7 +156,7 @@ define(["jquery", "footable", "humanize"], } preprocess_item(item); - Object.keys(item.symbols).map(function (key) { + Object.keys(item.symbols).forEach(function (key) { var str = null; var sym = item.symbols[key];