diff --git a/remote-config/src/androidMain/kotlin/io/ashdavies/config/FirebaseRemoteConfig.android.kt b/remote-config/src/androidMain/kotlin/io/ashdavies/config/FirebaseRemoteConfig.android.kt index 75c236d7c..81503c084 100644 --- a/remote-config/src/androidMain/kotlin/io/ashdavies/config/FirebaseRemoteConfig.android.kt +++ b/remote-config/src/androidMain/kotlin/io/ashdavies/config/FirebaseRemoteConfig.android.kt @@ -21,11 +21,11 @@ private val _firebaseRemoteConfig by lazy { internal actual val firebaseRemoteConfig = object : RemoteConfig { override suspend fun getValue(key: String, transform: (RemoteConfigValue) -> T): T { - return transform(RemoteConfigValue(_firebaseRemoteConfig.getValue(key))) + return transform(remoteConfigValue(_firebaseRemoteConfig.getValue(key))) } } -private fun RemoteConfigValue(value: FirebaseRemoteConfigValue) = object : RemoteConfigValue { +private fun remoteConfigValue(value: FirebaseRemoteConfigValue) = object : RemoteConfigValue { override fun asLong(): Long = value.asLong() override fun asDouble(): Double = value.asDouble() override fun asString(): String = value.asString()