Skip to content

Commit

Permalink
Fix smells
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Jan 14, 2025
1 parent a617c29 commit ee059f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/mpo/dayon/common/preference/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ public static synchronized Preferences getPreferences() {
try {
final File file = getOrCreatePreferencesFile();
Log.info("Preferences (" + (file.exists() ? "existing" : "new") + ") [" + file.getAbsolutePath() + "]");
return preferences = setupPersister(new Preferences(file));
preferences = setupPersister(new Preferences(file));
return preferences;
} catch (IOException ex) {
Log.warn("Preferences get/create error!", ex);
return preferences = NULL;
preferences = NULL;
return preferences;
}
}

Expand Down

0 comments on commit ee059f6

Please sign in to comment.