Pārlūkot izejas kodu

[Minor] Use .forEach instead of .map

as we only need to iterate
tags/1.8.0
Alexander Moisseev pirms 5 gadiem
vecāks
revīzija
47cad9a732
2 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 0
    1
      .eslintrc.json
  2. 2
    2
      interface/js/app/history.js

+ 0
- 1
.eslintrc.json Parādīt failu

@@ -56,7 +56,6 @@


// Temporarily disabled rules
"array-callback-return": "off",
"array-element-newline": "off",
"consistent-this": "off",
"func-style": "off",

+ 2
- 2
interface/js/app/history.js Parādīt failu

@@ -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];


Notiek ielāde…
Atcelt
Saglabāt