Skip to content

Commit

Permalink
perf[kotlin]: null safe
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Jul 6, 2024
1 parent e7f2342 commit 4ea7d7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ProtocolManager {
}

@JvmStatic
fun read(buffer: ByteBuffer): Any? {
fun read(buffer: ByteBuffer): Any {
val protocolId = buffer.readShort()
return getProtocol(protocolId).read(buffer)
}
Expand Down

0 comments on commit 4ea7d7d

Please sign in to comment.