Skip to content

Commit

Permalink
Make sure to close stream
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusum committed Sep 19, 2024
1 parent aef9d14 commit d427f36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ private void validateServicesFile() throws IOException {
}

private long filesInApplicationPackage() {
return uncheck(() -> Files.list(appDir.toPath()).count());
return uncheck(() -> { try (var files = Files.list(appDir.toPath())) { return files.count(); } });
}

private void copyUserDefsIntoApplication() {
Expand Down

0 comments on commit d427f36

Please sign in to comment.