Skip to content

Commit 2b93de8

Browse files
committed
Address comments
1 parent 68cfbaa commit 2b93de8

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

src/main/java/io/appium/java_client/proxy/RemoteWebElementListener.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,8 @@ public Object call(Object obj, Method method, Object[] args, Callable<?> origina
6464

6565
if (result instanceof List) {
6666
return ((List<?>) result).stream()
67-
.map(item -> {
68-
if (item instanceof RemoteWebElement) {
69-
return wrapElement(
70-
(RemoteWebElement) item,
71-
parent,
72-
listeners);
73-
}
74-
return item;
75-
})
67+
.map(item -> item instanceof RemoteWebElement ? wrapElement(
68+
(RemoteWebElement) item, parent, listeners) : item)
7669
.collect(Collectors.toList());
7770
}
7871

0 commit comments

Comments
 (0)