Skip to content

Commit 86f553c

Browse files
committed
refactored if-statement in ShadowDomService
1 parent ab3077d commit 86f553c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bellatrix.web/src/main/java/solutions/bellatrix/web/components/shadowdom/ShadowDomService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private static <TComponent extends WebComponent> TComponent retryFindingSingleCo
253253
throw new RuntimeException(e);
254254
}
255255

256-
if (foundElements.size() == 0) throw new IllegalArgumentException();
256+
if (foundElements.isEmpty()) throw new IllegalArgumentException();
257257

258258
}, Duration.ofSeconds(ConfigurationService.get(WebSettings.class).getTimeoutSettings().getElementWaitTimeout()), Duration.ofSeconds(1), false)) {
259259
try {

0 commit comments

Comments
 (0)