Skip to content

Commit 5ac0fba

Browse files
committed
Removing unneeded cast
1 parent e7958a9 commit 5ac0fba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/server/src/org/openqa/grid/selenium/proxy/DefaultRemoteProxy.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

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

20-
import com.google.gson.JsonObject;
21-
2220
import org.openqa.grid.common.RegistrationRequest;
2321
import org.openqa.grid.common.SeleniumProtocol;
2422
import org.openqa.grid.common.exception.RemoteException;
@@ -240,7 +238,7 @@ public void beforeSession(TestSession session) {
240238
if (options == null) {
241239
options = new HashMap<String, Object>();
242240
}
243-
options.put("binary", (String) session.getSlot().getCapabilities().get("chrome_binary"));
241+
options.put("binary", session.getSlot().getCapabilities().get("chrome_binary"));
244242
cap.put(ChromeOptions.CAPABILITY, options);
245243
}
246244
}

0 commit comments

Comments
 (0)