Skip to content

Commit feb1efb

Browse files
OpenNotificationsTest was improved
1 parent 168d9d8 commit feb1efb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/test/java/io/appium/java_client/android/OpenNotificationsTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ public void openNotification() throws Exception {
2020
List<AndroidElement> result = input
2121
.findElements(id("com.android.systemui:id/carrier_label"));
2222

23-
if (result.size() == 0) {
24-
return null;
25-
}
26-
27-
return result;
23+
return result.isEmpty() ? null : result;
2824
}).size());
2925
}
3026
}

0 commit comments

Comments
 (0)