Skip to content

Commit

Permalink
Fix inconsistent code styles in OkHttpStreamFetcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
floating-cat committed Apr 10, 2015
1 parent c78ee4e commit 4eba230
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public InputStream loadData(Priority priority) throws Exception {
Request.Builder requestBuilder = new Request.Builder()
.url(url.toStringUrl());
for (Map.Entry<String, String> headerEntry : url.getHeaders().entrySet()) {
requestBuilder.addHeader(headerEntry.getKey(), headerEntry.getValue());
requestBuilder.addHeader(headerEntry.getKey(), headerEntry.getValue());
}
Request request = requestBuilder.build();

Expand All @@ -50,12 +50,12 @@ public InputStream loadData(Priority priority) throws Exception {

@Override
public void cleanup() {
try {
if (stream != null) {
if (stream != null) {
try {
stream.close();
} catch (IOException e) {
// Ignored
}
} catch (IOException e) {
// Ignored
}
if (responseBody != null) {
try {
Expand Down

0 comments on commit 4eba230

Please sign in to comment.