1nwf / Produx-v2

Redundant error checking RVV-B0005
Style
Major
8 months ago2 years old
redundant if ...; err != nil check, just return error instead.
 43	return c.conn.WriteJSON(msg)
 44}
 45func (msg *Message) UnmarshalBinary(data []byte) error {
 46	if err := json.Unmarshal(data, &msg); err != nil { 47		return err
 48	}
 49	return nil