Skip to content

Commit d86eb6f

Browse files
argzdevrlazo
andauthored
a helpful commit message (#5187)
Co-authored-by: Rodrigo Lazo <[email protected]>
1 parent 2827bac commit d86eb6f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

firebase-sessions/src/main/kotlin/com/google/firebase/sessions/settings/RemoteSettingsFetcher.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ internal class RemoteSettingsFetcher(
4646
onFailure: suspend (String) -> Unit
4747
) =
4848
withContext(blockingDispatcher) {
49-
val connection = settingsUrl().openConnection() as HttpsURLConnection
50-
connection.requestMethod = "GET"
51-
connection.setRequestProperty("Accept", "application/json")
52-
headerOptions.forEach { connection.setRequestProperty(it.key, it.value) }
53-
5449
try {
50+
val connection = settingsUrl().openConnection() as HttpsURLConnection
51+
connection.requestMethod = "GET"
52+
connection.setRequestProperty("Accept", "application/json")
53+
headerOptions.forEach { connection.setRequestProperty(it.key, it.value) }
54+
5555
val responseCode = connection.responseCode
5656
if (responseCode == HttpsURLConnection.HTTP_OK) {
5757
val inputStream = connection.inputStream

0 commit comments

Comments
 (0)