We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3367002 commit 956d779Copy full SHA for 956d779
google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpResponse.java
@@ -76,13 +76,7 @@ public InputStream getContent() throws IOException {
76
try {
77
return connection.getInputStream();
78
} catch (IOException ioe) {
79
- InputStream stream = connection.getErrorStream();
80
- // if the stream is not null then the error was set on the error stream, otherwise we should
81
- // just rethrow the I/O exception.
82
- if (stream == null) {
83
- throw ioe;
84
- }
85
- return stream;
+ return connection.getErrorStream();
86
}
87
88
0 commit comments