Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Toshimichi0915 committed Jul 28, 2020
1 parent 0854eb6 commit 3b64a0d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/net/toshimichi/packetanalyzer/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ private void copyResource(String resource, String folder) throws IOException {
parent.mkdirs();
file.createNewFile();
byte[] buffer = new byte[2048];
try (InputStream in = getResource(resource)) {
try (FileOutputStream out = new FileOutputStream(file)) {
while ((in.read(buffer)) != -1)
out.write(buffer);
}
try (InputStream in = getResource(resource); FileOutputStream out = new FileOutputStream(file)) {
while ((in.read(buffer)) != -1)
out.write(buffer);
}
}

Expand Down

0 comments on commit 3b64a0d

Please sign in to comment.