Skip to content

Commit

Permalink
simplify statement
Browse files Browse the repository at this point in the history
  • Loading branch information
gbourant committed Dec 31, 2023
1 parent 69a34f7 commit bcc62f2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ void addLanguageBundle(String language, String bundlePath) {
throw new UncheckedIOException(e);
}
Properties properties = bundles.get(language);
if (properties == null || properties.isEmpty()) {
if (properties == null) {
bundles.put(language, bundle);
} else {
properties.putAll(bundle);
bundles.put(language, bundle);
}
}
} catch (IOException e) {
Expand Down

0 comments on commit bcc62f2

Please sign in to comment.