Skip to content

Commit

Permalink
Remove duplicate block of code in DynamicConfigFactory (opensearch-pr…
Browse files Browse the repository at this point in the history
…oject#2321)

Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks authored Dec 20, 2022
1 parent 93faf75 commit 6c54ea8
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,6 @@ public DynamicConfigFactory(ConfigurationRepository cr, final Settings opensearc
log.info("Static resources will not be loaded.");
}

if(opensearchSettings.getAsBoolean(ConfigConstants.SECURITY_UNSUPPORTED_LOAD_STATIC_RESOURCES, true)) {
try {
loadStaticConfig();
} catch (IOException e) {
throw new StaticResourceException("Unable to load static resources due to "+e, e);
}
} else {
log.info("Static resources will not be loaded.");
}

registerDCFListener(this.iab);
this.cr.subscribeOnChange(this);
}
Expand Down

0 comments on commit 6c54ea8

Please sign in to comment.