Skip to content

Commit 9f0b870

Browse files
committed
DefaultUIService: tweak syntax for conciseness
1 parent 922e72d commit 9f0b870

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/scijava/ui/DefaultUIService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ public boolean isHeadless() {
191191
public UserInterface getDefaultUI() {
192192
if (isHeadless()) return HeadlessUI.getInstance();
193193
if (defaultUI != null) return defaultUI;
194-
if (uiList().isEmpty()) return null;
195-
return uiList().get(0);
194+
return uiList().isEmpty() ? null : uiList().get(0);
196195
}
197196

198197
@Override

0 commit comments

Comments
 (0)