From 6827f36e6a62048fc97e375df1ba93a4b8f1128c Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 14 Jun 2020 16:53:45 +0200 Subject: [PATCH] test --- def.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/def.go b/def.go index 1bf02ab..9f9f663 100644 --- a/def.go +++ b/def.go @@ -59,6 +59,7 @@ type PacketAdminJoin struct { func (p *PacketAdminJoin) Bytes() []byte { buf := new(bytes.Buffer) p.PLength = uint16(binary.Size(p)) - _ = binary.Write(buf, binary.LittleEndian, p) + err = binary.Write(buf, binary.LittleEndian, p) + logErrorDebug(err, "binary.Write") return buf.Bytes() }