code refactor

This commit is contained in:
ReznoRMichael 2022-01-20 15:37:53 +01:00
parent f3607f36ea
commit 95f841a064

View file

@ -2498,15 +2498,16 @@ class DataChecker {
case "grub33": case "grub33":
case "grub34": case "grub34":
if (this.entries.grub32.icon === "green") { if (this.entries.grub32.icon === "green") {
SetIconGreen(this.section, entry); SetIconGreen(this.section, entry);
} else { } else {
SetIconRed(this.section, entry); SetIconRed(this.section, entry);
} }
break; break;
default: default:
if (this._FindItem(this.entries[entry])) { if (this._FindItem(this.entries[entry])) {
SetIconGreen(this.section, entry); SetIconGreen(this.section, entry);
} else { } else {
@ -2529,6 +2530,7 @@ class DataChecker {
switch(entry) { switch(entry) {
default: default:
if (this._FindGeoRock(this.entries[entry])) { if (this._FindGeoRock(this.entries[entry])) {
SetIconGreen(this.section, entry); SetIconGreen(this.section, entry);
} else { } else {