diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2018-02-10 12:09:57 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2018-02-10 12:09:57 +0100 |
commit | 886201867ac7383535c08d81dbabc6c9c77fe855 (patch) | |
tree | aaeaa72cd45bd4e4feee565355186a952b01fedc /key/pub.go | |
parent | 01c913285b95afe9c53e26776e1149553b809e0a (diff) |
megacheck
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) } |