From d0594591c6389c00c041655026c5a14c6a05433d Mon Sep 17 00:00:00 2001 From: Niall Date: Tue, 4 Jun 2024 14:44:07 +0100 Subject: [PATCH] fallback to default settings, not null --- core/src/main/java/com/segment/analytics/kotlin/core/Settings.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/com/segment/analytics/kotlin/core/Settings.kt b/core/src/main/java/com/segment/analytics/kotlin/core/Settings.kt index ed6dc55c..d4db087c 100644 --- a/core/src/main/java/com/segment/analytics/kotlin/core/Settings.kt +++ b/core/src/main/java/com/segment/analytics/kotlin/core/Settings.kt @@ -112,7 +112,6 @@ internal fun Analytics.fetchSettings( val connection = HTTPClient(writeKey, this.configuration.requestFactory).settings(cdnHost) val settingsString = connection.inputStream?.bufferedReader()?.use(BufferedReader::readText) ?: "" - //configuration.defaultSettings = LenientJson.decodeFromString(settingsString) log("Fetched Settings: $settingsString") LenientJson.decodeFromString(settingsString) } catch (ex: Exception) {