fix compiler warning (#17085)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
mlobstein 2024-07-17 01:38:13 -05:00 committed by Ciprian Pascu
parent 60178b2329
commit 3e1a6e6260

View File

@ -270,7 +270,7 @@ public enum AmplifierModel {
public String getZoneIdFromZoneName(String zoneName) {
for (String zoneId : zoneIdMap.keySet()) {
if (zoneIdMap.get(zoneId).equals(zoneName)) {
if (zoneName.equals(zoneIdMap.get(zoneId))) {
return zoneId;
}
}
@ -278,12 +278,8 @@ public enum AmplifierModel {
}
public String getZoneName(String zoneId) {
String zoneName = zoneIdMap.get(zoneId);
if (zoneName != null) {
return zoneName;
} else {
return "";
}
final String zoneName = zoneIdMap.get(zoneId);
return zoneName != null ? zoneName : "";
}
public String getCmdPrefix() {