Skip to content

Commit

Permalink
fix compiler warning (openhab#17085)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Lobstein <[email protected]>
  • Loading branch information
mlobstein authored Jul 17, 2024
1 parent b123863 commit 3a5bee0
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,16 @@ private static MonopriceAudioZoneDTO getMonopriceZoneData(String newZoneData) {

public String getZoneIdFromZoneName(String zoneName) {
for (String zoneId : zoneIdMap.keySet()) {
if (zoneIdMap.get(zoneId).equals(zoneName)) {
if (zoneName.equals(zoneIdMap.get(zoneId))) {
return zoneId;
}
}
return "";
}

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

0 comments on commit 3a5bee0

Please sign in to comment.