Clean up DataSourceInputStream

This commit is contained in:
Oliver Woodman 2015-05-05 20:30:52 +01:00
parent a63883a8c8
commit 9dcb17f21a

View File

@ -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