code refactor

This commit is contained in:
ReznoRMichael 2022-01-20 15:21:53 +01:00
parent acee3f0774
commit 5f5eca221e

View file

@ -2489,15 +2489,15 @@ class DataChecker {
this.section = section; this.section = section;
this.entries = section.entries; this.entries = section.entries;
for (let i in this.entries) { for (let entry in this.entries) {
switch(i) { switch(entry) {
default: default:
if (this._FindItem(this.entries[i])) { if (this._FindItem(this.entries[entry])) {
SetIconGreen(this.section, i); SetIconGreen(this.section, entry);
} else { } else {
SetIconRed(this.section, i); SetIconRed(this.section, entry);
} }
} }
} }
@ -2511,15 +2511,15 @@ class DataChecker {
this.section = section; this.section = section;
this.entries = section.entries; this.entries = section.entries;
for (let i in this.entries) { for (let entry in this.entries) {
switch(i) { switch(entry) {
default: default:
if (this._FindGeoRock(this.entries[i])) { if (this._FindGeoRock(this.entries[entry])) {
SetIconGreen(this.section, i); SetIconGreen(this.section, entry);
} else { } else {
SetIconRed(this.section, i); SetIconRed(this.section, entry);
} }
} }
} }