Skip to content

Commit 1da0bac

Browse files
authored
Update DeviceAllocationManager.java
1 parent 4a4fcbe commit 1da0bac

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)