Skip to content

Commit fed76b1

Browse files
committed
[grid] Removing inlined variable
No logical changes [skip ci]
1 parent 6f5c827 commit fed76b1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎java/src/org/openqa/selenium/grid/distributor/GridModel.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
package org.openqa.selenium.grid.distributor;
1919

20+
import static org.openqa.selenium.grid.data.Availability.DOWN;
21+
import static org.openqa.selenium.grid.data.Availability.DRAINING;
22+
import static org.openqa.selenium.grid.data.Availability.UP;
23+
2024
import com.google.common.collect.ImmutableSet;
25+
2126
import org.openqa.selenium.events.EventBus;
2227
import org.openqa.selenium.grid.config.Config;
2328
import org.openqa.selenium.grid.data.Availability;
@@ -49,10 +54,6 @@
4954
import java.util.concurrent.locks.ReentrantReadWriteLock;
5055
import java.util.logging.Logger;
5156

52-
import static org.openqa.selenium.grid.data.Availability.DOWN;
53-
import static org.openqa.selenium.grid.data.Availability.DRAINING;
54-
import static org.openqa.selenium.grid.data.Availability.UP;
55-
5657
public class GridModel {
5758

5859
private static final SessionId RESERVED = new SessionId("reserved");
@@ -430,9 +431,9 @@ public void setSession(SlotId slotId, Session session) {
430431
return;
431432
}
432433

433-
Session current = maybeSession;
434-
if (!RESERVED.equals(current.getId())) {
435-
LOG.warning("Grid model and reality have diverged. Slot has session and is not reserved. " + slotId);
434+
if (!RESERVED.equals(maybeSession.getId())) {
435+
LOG.warning(
436+
"Grid model and reality have diverged. Slot has session and is not reserved. " + slotId);
436437
return;
437438
}
438439

0 commit comments

Comments
 (0)