Skip to content

Commit

Permalink
fallback to default settings, not null
Browse files Browse the repository at this point in the history
  • Loading branch information
niallzato committed Jun 4, 2024
1 parent 9a06034 commit d059459
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d059459

Please sign in to comment.