Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Oct 28, 2024
1 parent 4255b74 commit 52b64df
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,15 @@ default List<GameDlc> loadDlcsFromDirectory(Path directory) throws IOException {
return dlcs;
}

Files.list(directory).forEach(f -> {
try {
GameDlc.fromDirectory(f).ifPresent(dlcs::add);
} catch (Exception e) {
ErrorHandler.handleException(e);
}
});
try (var s = Files.list(directory)) {
s.forEach(f -> {
try {
GameDlc.fromDirectory(f).ifPresent(dlcs::add);
} catch (Exception e) {
ErrorHandler.handleException(e);
}
});
}
return dlcs;
}

Expand Down

0 comments on commit 52b64df

Please sign in to comment.