From 5f94756dd217b8baace4dccbdaa169bf784cfd4c Mon Sep 17 00:00:00 2001 From: Kai Zhu Date: Fri, 31 Jan 2020 19:42:52 +0800 Subject: [PATCH] Remove always-false check of retryCurrentRoute() and unreachable code. --- .../src/main/java/okhttp3/internal/connection/ExchangeFinder.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/okhttp/src/main/java/okhttp3/internal/connection/ExchangeFinder.kt b/okhttp/src/main/java/okhttp3/internal/connection/ExchangeFinder.kt index cd10c8301..9983953ac 100644 --- a/okhttp/src/main/java/okhttp3/internal/connection/ExchangeFinder.kt +++ b/okhttp/src/main/java/okhttp3/internal/connection/ExchangeFinder.kt @@ -174,8 +174,6 @@ class ExchangeFinder( } else if (nextRouteToTry != null) { selectedRoute = nextRouteToTry nextRouteToTry = null - } else if (retryCurrentRoute()) { - selectedRoute = call.connection!!.route() } } }