From 47cad9a73265359c182191f9146c5fa22b6846f9 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Fri, 21 Sep 2018 09:22:50 +0300 Subject: [PATCH] [Minor] Use .forEach instead of .map as we only need to iterate --- .eslintrc.json | 1 - interface/js/app/history.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8f33f636c..ccd26cc74 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 265894188..68e66924e 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]; -- 2.39.5