Skip to content

Commit ca59da0

Browse files
committed
Remove redundant check.
1 parent 9a0bca1 commit ca59da0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyResponse.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public String getResponseBodyExcerpt(int maxLength, String charset) throws IOExc
5151
charset = calculateCharset();
5252
}
5353
byte[] b = AsyncHttpProviderUtils.contentToBytes(bodyParts, maxLength);
54-
if (charset == null) {
55-
charset = DEFAULT_CHARSET;
56-
}
5754
return new String(b, charset);
5855
}
5956

0 commit comments

Comments
 (0)