staticcheck

This commit is contained in:
Jean-Philippe Bossuat
2023-04-24 21:05:56 +02:00
parent d5f0f04b68
commit 5951af1c23
14 changed files with 15 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ func (m Map[V, T]) CopyNew() *Map[V, T] {
func (m *Map[V, T]) MarshalBinary() (p []byte, err error) {
buf := bytes.NewBuffer([]byte{})
_, err = m.WriteTo(buf)
return buf.Bytes(), nil
return buf.Bytes(), err
}
// UnmarshalBinary decodes a slice of bytes generated by