From 83eff3c7938943b42509e5c3ef0c42eada340877 Mon Sep 17 00:00:00 2001 From: Ashley Davies Date: Fri, 13 Dec 2024 10:37:41 +0100 Subject: [PATCH] Lower case function name --- .../io/ashdavies/config/FirebaseRemoteConfig.android.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()