Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Dec 8, 2023
1 parent 059c60c commit 81de59e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/src/main/java/lucee/runtime/engine/CFMLEngineImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -922,17 +922,14 @@ public void setConfigServerImpl(ConfigServerImpl cs) {

private ConfigServerImpl getConfigServerImpl(ConfigServerImpl existing, boolean essentialOnly, boolean allowGrapingThreadConfig) {
if (configServer == null) {
print.e("--->>> getConfigServerImpl");
// if in process to be build, this may only exists with the thread yet
if (allowGrapingThreadConfig) {
Config config = ThreadLocalPageContext.getConfig();
if (config instanceof ConfigServerImpl) {
print.ds("--->>> config server");
// return (ConfigServerImpl) config;
return (ConfigServerImpl) config;
}
if (config instanceof ConfigWebImpl) {
print.ds("--->>> config web");
// return ((ConfigWebImpl) config).getConfigServerImpl();
return ((ConfigWebImpl) config).getConfigServerImpl();
}
}
try {
Expand Down

0 comments on commit 81de59e

Please sign in to comment.