From: David ‘Bombe’ Roden Date: Sat, 9 May 2015 08:15:55 +0000 (+0200) Subject: Remove unnecessary input stream X-Git-Tag: v2~178 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c3807abd1ef60b40e0b3f7062e24865dbe485029;p=rhynodge.git Remove unnecessary input stream --- 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); } }