Fix Codacy Spotbugs

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2023-10-11 14:44:20 +02:00
parent 7e0d05818b
commit cde7edba5f
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -437,13 +437,7 @@ public final class AppPreferencesImpl implements AppPreferences {
@Override
public boolean isDarkModeEnabled() {
DarkMode darkMode = getDarkThemeMode();
if (darkMode != null) {
return getDarkThemeMode() == DarkMode.DARK;
} else {
return false;
}
return getDarkThemeMode() == DarkMode.DARK;
}
@Override