Skip to content

Commit 2fbd481

Browse files
BoDAnka
authored andcommitted
Fix "unnecessary safe call operator" warning
1 parent 9325599 commit 2fbd481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/no-runtime/src/test/kotlin/test/NoRuntimeTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ class NoRuntimeTest {
5757

5858
assertTrue(response.isSuccessful)
5959

60-
val apolloResponse = response.body?.use {
60+
val apolloResponse = response.body.use {
6161
BufferedSourceJsonReader(it.source()).toApolloResponse(operation = query)
6262
}
6363

64-
assertEquals(42, apolloResponse?.data?.random)
64+
assertEquals(42, apolloResponse.data?.random)
6565
}
6666
}

0 commit comments

Comments
 (0)