diff options
Diffstat (limited to 'key/pub.go')
-rw-r--r-- | key/pub.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -39,8 +39,5 @@ func (v *Pub) MarshalBinary() ([]byte, error) { func (v *Pub) UnmarshalBinary(data []byte) error { buf := bytes.NewReader(data) - if err := binary.Read(buf, binary.BigEndian, v); err != nil { - return err - } - return nil + return binary.Read(buf, binary.BigEndian, v) } |