Skip to content

Commit ee059f6

Browse files
committed
Fix smells
1 parent a617c29 commit ee059f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/mpo/dayon/common/preference/Preferences.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ public static synchronized Preferences getPreferences() {
5959
try {
6060
final File file = getOrCreatePreferencesFile();
6161
Log.info("Preferences (" + (file.exists() ? "existing" : "new") + ") [" + file.getAbsolutePath() + "]");
62-
return preferences = setupPersister(new Preferences(file));
62+
preferences = setupPersister(new Preferences(file));
63+
return preferences;
6364
} catch (IOException ex) {
6465
Log.warn("Preferences get/create error!", ex);
65-
return preferences = NULL;
66+
preferences = NULL;
67+
return preferences;
6668
}
6769
}
6870

0 commit comments

Comments
 (0)