fix compiler warning (#17085)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
pull/17100/head
mlobstein 2024-07-17 01:38:13 -05:00 committed by GitHub
parent b123863d59
commit 3a5bee0412
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 7 deletions

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() {