Skip to content

Commit

Permalink
Fix dead-loop when reading config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny-Hui committed Feb 18, 2024
1 parent 7766a5f commit 7ab99eb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public static void writeFile() {
}

try {
CONFIG_PATH.toFile().mkdirs();
Files.write(CONFIG_PATH, Collections.singleton(new GsonBuilder().setPrettyPrinting().create().toJson(jsonConfig)));
} catch (Exception e) {
e.printStackTrace();
Expand Down

0 comments on commit 7ab99eb

Please sign in to comment.