[java] Deleting useless code and formatting
import static org.openqa.selenium.remote.tracing.Tags.HTTP_REQUEST;
import static org.openqa.selenium.remote.tracing.Tags.HTTP_REQUEST_EVENT;
import static org.openqa.selenium.remote.tracing.Tags.HTTP_RESPONSE;
-import static org.openqa.selenium.remote.tracing.Tags.HTTP_RESPONSE_EVENT;
class HandleSession implements HttpHandler {
@@ -126,9 +125,6 @@ public HttpResponse execute(HttpRequest req) {
return span.wrap(
() -> {
Session session = sessions.get(id);
- if (session instanceof HttpHandler) {
- return (HttpHandler) session;
- }
HttpClient client = httpClientFactory.createClient(Urls.fromUri(session.getUri()));
return new ReverseProxyHandler(tracer, client);
}
