Skip to content

Commit 2d435db

Browse files
core.items.GenericItem.getCommandOptions() - simplify (openhab#5583)
1 parent 771986b commit 2d435db

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

bundles/org.openhab.core/src/main/java/org/openhab/core/items/GenericItem.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,7 @@ protected void logSetTypeError(TimeSeries timeSeries) {
580580

581581
protected @Nullable CommandDescription getCommandOptions(@Nullable Locale locale) {
582582
if (commandDescriptionService instanceof CommandDescriptionService service) {
583-
CommandDescription commandDescription = service.getCommandDescription(this.name, locale);
584-
if (commandDescription != null) {
585-
return commandDescription;
586-
}
583+
return service.getCommandDescription(this.name, locale);
587584
}
588585

589586
return null;

0 commit comments

Comments
 (0)