From efa930006de1e64f450d283e0da9f50cbe65f004 Mon Sep 17 00:00:00 2001 From: "Reichenbach, Michael" Date: Fri, 12 Nov 2021 09:32:23 +0100 Subject: [PATCH] fix: always apply config do not check load status --- core/src/main/java/net/silthus/configmapper/ConfigMap.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/src/main/java/net/silthus/configmapper/ConfigMap.java b/core/src/main/java/net/silthus/configmapper/ConfigMap.java index 93d12df..90e0ca5 100644 --- a/core/src/main/java/net/silthus/configmapper/ConfigMap.java +++ b/core/src/main/java/net/silthus/configmapper/ConfigMap.java @@ -144,13 +144,7 @@ public List keyValuePairs() { return List.copyOf(keyValuePairs); } - public boolean loaded() { - - return !keyValuePairs().isEmpty(); - } - public TConfig applyTo(@NonNull TConfig config) throws ConfigurationException { - if (!this.loaded()) return config; setConfigFields(config, ConfigUtil.loadConfigValues(configFields(), keyValuePairs())); return config; }