From 5f5eca221e61b3d2b22d943a8764e2e2588b4c1e Mon Sep 17 00:00:00 2001 From: ReznoRMichael Date: Thu, 20 Jan 2022 15:21:53 +0100 Subject: [PATCH] code refactor --- src/js/HKCheckCompletion.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/js/HKCheckCompletion.js b/src/js/HKCheckCompletion.js index 37adf20..9eeeae9 100644 --- a/src/js/HKCheckCompletion.js +++ b/src/js/HKCheckCompletion.js @@ -2489,15 +2489,15 @@ class DataChecker { this.section = section; this.entries = section.entries; - for (let i in this.entries) { + for (let entry in this.entries) { - switch(i) { + switch(entry) { default: - if (this._FindItem(this.entries[i])) { - SetIconGreen(this.section, i); + if (this._FindItem(this.entries[entry])) { + SetIconGreen(this.section, entry); } else { - SetIconRed(this.section, i); + SetIconRed(this.section, entry); } } } @@ -2511,15 +2511,15 @@ class DataChecker { this.section = section; this.entries = section.entries; - for (let i in this.entries) { + for (let entry in this.entries) { - switch(i) { + switch(entry) { default: - if (this._FindGeoRock(this.entries[i])) { - SetIconGreen(this.section, i); + if (this._FindGeoRock(this.entries[entry])) { + SetIconGreen(this.section, entry); } else { - SetIconRed(this.section, i); + SetIconRed(this.section, entry); } } }