Skip to content

Commit 698991c

Browse files
committed
2 parents 94e682a + 1da0bac commit 698991c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/com/appium/manager/DeviceAllocationManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public synchronized AppiumDevice getNextAvailableDevice() {
5050
Thread t = Thread.currentThread();
5151
t.setName("Thread_" + i);
5252
i++;
53-
boolean flag =device.isAvailable();
54-
if (flag) {
53+
if (device.isAvailable()) {
5554
device.blockDevice();
5655
return device;
5756
}

0 commit comments

Comments
 (0)