Skip to content

Commit

Permalink
update exception for PMD rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdahlke committed Jan 7, 2025
1 parent 999c75b commit ad1ea43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/emissary/util/os/OSReleaseUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private static boolean isOsName(Path osReleasePath, String osName) {
if (Files.exists(osReleasePath)) {
try (Stream<String> lines = Files.lines(osReleasePath)) {
return lines.filter(line -> line.startsWith("ID=")).anyMatch(entry -> StringUtils.containsIgnoreCase(entry, osName));
} catch (IOException e) {
} catch (IOException ignored) {
// ignore
}
}
Expand Down

0 comments on commit ad1ea43

Please sign in to comment.