Skip to content

Commit

Permalink
fix: always apply config do not check load status
Browse files Browse the repository at this point in the history
  • Loading branch information
Silthus committed Nov 12, 2021
1 parent e4ee4fd commit efa9300
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/src/main/java/net/silthus/configmapper/ConfigMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,7 @@ public List<KeyValuePair> 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;
}
Expand Down

0 comments on commit efa9300

Please sign in to comment.