Skip to content

Commit 17e9024

Browse files
committed
sonar
1 parent 55ad8dc commit 17e9024

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

application/src/main/java/org/togetherjava/tjbot/Application.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ private Application() {
3636
}
3737

3838
private static final Logger logger = LoggerFactory.getLogger(Application.class);
39-
private static final String DEFAULT_CONFIG_PATH = "config.json";
39+
private static final String DEFAULT_CONFIG_PATH_DISK = "config.json";
40+
private static final String DEFAULT_CONFIG_PATH_RESOURCES = "/config.json";
4041
private static final String DEFAULT_SECRETS_PATH = "secrets.json";
4142

4243
/**
@@ -64,9 +65,9 @@ public static void main(final String[] args) {
6465
if (args.length > 0) {
6566
configPath = args[0];
6667
} else if (useIncludedConfig) {
67-
configPath = "/" + DEFAULT_CONFIG_PATH;
68+
configPath = DEFAULT_CONFIG_PATH_RESOURCES;
6869
} else {
69-
configPath = DEFAULT_CONFIG_PATH;
70+
configPath = DEFAULT_CONFIG_PATH_DISK;
7071
}
7172

7273
Config config;

0 commit comments

Comments
 (0)