We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f20ec commit 1d3e312Copy full SHA for 1d3e312
app/src/main/java/org/lineageos/twelve/utils/Api.kt
@@ -120,7 +120,7 @@ class Api(
120
) = withContext(dispatcher) {
121
withRetry(maxAttempts = 3) {
122
runCatching {
123
- okHttpClient.newCall(request).executeAsync().let { response ->
+ okHttpClient.newCall(request).executeAsync().use { response ->
124
if (response.isSuccessful) {
125
response.body?.use { body ->
126
val string = body.string()
0 commit comments