Skip to content

Commit 7e96b02

Browse files
committed
Fix nullability error
1 parent a21e734 commit 7e96b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LavalinkServer/src/main/java/lavalink/server/io/SocketContext.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ class SocketContext internal constructor(
129129
val undertowSession = (session as StandardWebSocketSession).nativeSession as UndertowSession
130130
WebSockets.sendText(payload, undertowSession.webSocketChannel,
131131
object : WebSocketCallback<Void> {
132-
override fun complete(channel: WebSocketChannel, context: Void) {
132+
override fun complete(channel: WebSocketChannel, context: Void?) {
133133
log.trace("Sent {}", payload)
134134
}
135135

136-
override fun onError(channel: WebSocketChannel, context: Void, throwable: Throwable) {
136+
override fun onError(channel: WebSocketChannel, context: Void?, throwable: Throwable) {
137137
log.error("Error", throwable)
138138
}
139139
})

0 commit comments

Comments
 (0)