Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
little optimized
  • Loading branch information
cheese8 committed Apr 22, 2024
commit 31a19fa4192b31b045695cf0acb247f98d7626d7
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
Expand Down Expand Up @@ -176,9 +175,7 @@ private Properties loadPropertiesOfNamespace(String namespace) {
logger.debug("load {} from {}", namespace, filename);
return ResourceUtils.readConfigFile(filename, new Properties());
}

LocalFileConfigRepository localFileConfigRepository = new LocalFileConfigRepository(namespace);
return localFileConfigRepository.getConfig();
return new LocalFileConfigRepository(namespace).getConfig();
}

private String mockLongPollBody(String notificationsStr) {
Expand Down