diff --git a/def.go b/def.go index 9f9f663..180636d 100644 --- a/def.go +++ b/def.go @@ -59,7 +59,7 @@ type PacketAdminJoin struct { func (p *PacketAdminJoin) Bytes() []byte { buf := new(bytes.Buffer) p.PLength = uint16(binary.Size(p)) - err = binary.Write(buf, binary.LittleEndian, p) + err := binary.Write(buf, binary.LittleEndian, p) logErrorDebug(err, "binary.Write") return buf.Bytes() }