Skip to content

Commit 1a9e13a

Browse files
committed
🚨 Fix Detekt Warning
1 parent f25864e commit 1a9e13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/co/stonephone/stonecamera/StoneCameraViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class StoneCameraViewModel(
193193

194194
@Suppress("UNCHECKED_CAST")
195195
return when (defaultValue) {
196-
is TranslatableString -> (prefs.getString(settingKey, defaultValue.resolve())) as? T
196+
is TranslatableString -> prefs.getString(settingKey, defaultValue.resolve()) as? T
197197
is Float -> prefs.getFloat(settingKey, defaultValue) as? T
198198
else -> null
199199
}

0 commit comments

Comments
 (0)