[grid] Removing inlined variable
No logical changes
[skip ci]
package org.openqa.selenium.grid.distributor;
+import static org.openqa.selenium.grid.data.Availability.DOWN;
+import static org.openqa.selenium.grid.data.Availability.DRAINING;
+import static org.openqa.selenium.grid.data.Availability.UP;
+
import com.google.common.collect.ImmutableSet;
+
import org.openqa.selenium.events.EventBus;
import org.openqa.selenium.grid.config.Config;
import org.openqa.selenium.grid.data.Availability;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.logging.Logger;
-import static org.openqa.selenium.grid.data.Availability.DOWN;
-import static org.openqa.selenium.grid.data.Availability.DRAINING;
-import static org.openqa.selenium.grid.data.Availability.UP;
-
public class GridModel {
private static final SessionId RESERVED = new SessionId("reserved");
@@ -430,9 +431,9 @@ public void setSession(SlotId slotId, Session session) {
return;
}
- Session current = maybeSession;
- if (!RESERVED.equals(current.getId())) {
- LOG.warning("Grid model and reality have diverged. Slot has session and is not reserved. " + slotId);
+ if (!RESERVED.equals(maybeSession.getId())) {
+ LOG.warning(
+ "Grid model and reality have diverged. Slot has session and is not reserved. " + slotId);
return;
}
