Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed May 18, 2019
1 parent 0323cc8 commit b8510b3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ protected File load(Container.Entry entry) {
tmpFile.deleteOnExit();

try (InputStream is = new BufferedInputStream(loadUrl.openStream()); OutputStream os = new BufferedOutputStream(new FileOutputStream(tmpFile))) {
int readed = is.read(buffer);
while (readed > 0) {
os.write(buffer, 0, readed);
readed = is.read(buffer);
int read = is.read(buffer);
while (read > 0) {
os.write(buffer, 0, read);
read = is.read(buffer);
}
}

Expand Down

0 comments on commit b8510b3

Please sign in to comment.