Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
remove return in JsonPacket
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasnieberler committed Mar 19, 2024
1 parent 40b2860 commit a2af331
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ abstract class JsonPacket : IPacket {
var jsonLib: JsonLib = JsonLib.empty(PACKET_GSON)

override fun read(byteBuf: ByteBuf, communicationBootstrap: ICommunicationBootstrap) {
val nextString = ByteBufStringHelper.nextString(byteBuf) ?: return
val nextString = ByteBufStringHelper.nextString(byteBuf)
jsonLib = JsonLib.fromJsonString(nextString, PACKET_GSON)
}

Expand Down

0 comments on commit a2af331

Please sign in to comment.