Skip to content

Commit 27836c7

Browse files
committed
remove redundant instanceof
1 parent 6cde3cb commit 27836c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

google-http-client-apache-v3/src/main/java/com/google/api/client/http/apache/v3/ApacheHttpTransport.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ protected ApacheHttpRequest buildRequest(String method, String url) {
216216
*/
217217
@Override
218218
public void shutdown() throws IOException {
219-
if (httpClient instanceof CloseableHttpClient) {
220-
((CloseableHttpClient) httpClient).close();
221-
}
219+
httpClient.close();
222220
}
223221

224222
/**

0 commit comments

Comments
 (0)