From bcc62f28f3d2e9b04adca6127f6ee5a24644b8c5 Mon Sep 17 00:00:00 2001 From: gbourant Date: Sun, 31 Dec 2023 20:16:18 +0200 Subject: [PATCH] simplify statement --- .../main/java/io/quarkiverse/renarde/impl/RenardeConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/src/main/java/io/quarkiverse/renarde/impl/RenardeConfig.java b/runtime/src/main/java/io/quarkiverse/renarde/impl/RenardeConfig.java index e8d2832a..e778cdce 100644 --- a/runtime/src/main/java/io/quarkiverse/renarde/impl/RenardeConfig.java +++ b/runtime/src/main/java/io/quarkiverse/renarde/impl/RenardeConfig.java @@ -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) {