From c3807abd1ef60b40e0b3f7062e24865dbe485029 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 9 May 2015 10:15:55 +0200 Subject: [PATCH] Remove unnecessary input stream --- src/main/java/net/pterodactylus/rhynodge/queries/HttpQuery.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/queries/HttpQuery.java b/src/main/java/net/pterodactylus/rhynodge/queries/HttpQuery.java index 362a04b..3d28590 100644 --- a/src/main/java/net/pterodactylus/rhynodge/queries/HttpQuery.java +++ b/src/main/java/net/pterodactylus/rhynodge/queries/HttpQuery.java @@ -74,7 +74,6 @@ public class HttpQuery implements Query { .addInterceptorFirst(new ResponseContentEncoding()).build(); HttpGet get = new HttpGet(uri); - InputStreamReader inputStreamReader = null; try { /* make request. */ get.addHeader("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11"); @@ -91,8 +90,6 @@ public class HttpQuery implements Query { } catch (IOException ioe1) { return new FailedState(ioe1); - } finally { - Closeables.closeQuietly(inputStreamReader); } } -- 2.7.4