Skip to content

Commit 0fc1482

Browse files
committed
Fix "The corresponding parameter in the supertype 'SubscriptionParser' is named 'response'. This may cause problems when calling this function with named arguments."
1 parent d9f39b1 commit 0fc1482

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/jsexport/src/jsTest/kotlin/JsExportTest.js.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ actual val parserFactory: SubscriptionParserFactory?
2323
object JsSubscriptionParserFactory : SubscriptionParserFactory {
2424
override fun <D : Operation.Data> createParser(request: ApolloRequest<D>): SubscriptionParser<D> {
2525
return object : SubscriptionParser<D> {
26-
override fun parse(payload: ApolloJsonElement): ApolloResponse<D> {
26+
override fun parse(response: ApolloJsonElement): ApolloResponse<D> {
2727
return ApolloResponse.Builder(request.operation, request.requestUuid)
28-
.data(payload.asDynamic().data.unsafeCast<D>())
28+
.data(response.asDynamic().data.unsafeCast<D>())
2929
.errors(null) // TODO: Error doesn't use @JsExport
3030
.build()
3131
}
@@ -87,4 +87,4 @@ object JsWsProtocol : WsProtocol {
8787
else -> ParseErrorServerMessage("Unknown type: '$type' found in server message: '$text'")
8888
}
8989
}
90-
}
90+
}

0 commit comments

Comments
 (0)