code refactor
This commit is contained in:
parent
acee3f0774
commit
5f5eca221e
1 changed files with 10 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue