mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
staticcheck
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user