aboutsummaryrefslogtreecommitdiff
path: root/key/pub.go
diff options
context:
space:
mode:
Diffstat (limited to 'key/pub.go')
-rw-r--r--key/pub.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/key/pub.go b/key/pub.go
index aa23685..226e3f1 100644
--- a/key/pub.go
+++ b/key/pub.go
@@ -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)
}