Commit 9dcb17f2 by Oliver Woodman

Clean up DataSourceInputStream

parent a63883a8
...@@ -59,10 +59,10 @@ public class DataSourceInputStream extends InputStream { ...@@ -59,10 +59,10 @@ public class DataSourceInputStream extends InputStream {
@Override @Override
public int read() throws IOException { public int read() throws IOException {
int length = read(singleByteArray); int length = read(singleByteArray);
if(length != -1) { if (length == -1) {
return singleByteArray[0] & 0xFF; return -1;
} }
return length; return singleByteArray[0] & 0xFF;
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment