Skip to content

Commit 843b8b4

Browse files
authored
Remove redundant check from readObject condition (#24)
1 parent c62e4cd commit 843b8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/dampcake/bencode/BencodeInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private Object readObject(final int token) throws IOException {
256256

257257
if (type == Type.STRING && !useBytes)
258258
return readString();
259-
if (type == Type.STRING && useBytes)
259+
if (type == Type.STRING)
260260
return readStringBytes();
261261
if (type == Type.NUMBER)
262262
return readNumber();

0 commit comments

Comments
 (0)