Skip to content

Commit

Permalink
Remove explicit argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamboushaba committed Dec 5, 2024
1 parent 9b2d033 commit a25dfe5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal class ApiFakerConfig @Inject constructor(
preferences.edit().putBoolean(PREFERENCE_KEY, enabled).apply()
}

private fun SharedPreferences.prefFlow(key: String, defaultValue: Boolean) = callbackFlow<Boolean> {
private fun SharedPreferences.prefFlow(key: String, defaultValue: Boolean) = callbackFlow {
val listener = SharedPreferences.OnSharedPreferenceChangeListener { _, listenerKey ->
if (listenerKey == key) {
trySend(getBoolean(key, defaultValue))
Expand Down

0 comments on commit a25dfe5

Please sign in to comment.