multi: fix linter errors

This commit is contained in:
Olaoluwa Osuntokun
2017-08-22 01:00:07 -07:00
parent ed3268b988
commit 2b2a3714c1
4 changed files with 9 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ func writeElement(w io.Writer, element interface{}) error {
}
case *btcec.PublicKey:
if e == nil {
fmt.Errorf("cannot write nil pubkey")
return fmt.Errorf("cannot write nil pubkey")
}
var b [33]byte