Skip to content

Commit 8181e46

Browse files
author
Jevgeni Koltšin
committed
useless initialization
1 parent 844905b commit 8181e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/creatubbles/api/util/HttpUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static Response uploadObject(byte[] data, String url, String mimeType) th
3535
out = connection.getOutputStream();
3636
ByteArrayInputStream in = new ByteArrayInputStream(data);
3737
byte[] buffer = new byte[4096];
38-
int bytesRead = -1;
38+
int bytesRead;
3939
while ((bytesRead = in.read(buffer)) != -1) {
4040
out.write(buffer, 0, bytesRead);
4141
}

0 commit comments

Comments
 (0)