lnd: fix latest goclean.sh lint warning

This commit is contained in:
Andrey Samokhvalov
2017-03-09 07:44:32 +03:00
committed by Olaoluwa Osuntokun
parent 730c0b8cb1
commit 61991a1c89
16 changed files with 44 additions and 88 deletions

View File

@@ -85,9 +85,6 @@ func (p *RevocationProducer) AtIndex(v uint64) (*chainhash.Hash, error) {
//
// NOTE: Part of the Producer interface.
func (p *RevocationProducer) Encode(w io.Writer) error {
if _, err := w.Write(p.root.hash[:]); err != nil {
return err
}
return nil
_, err := w.Write(p.root.hash[:])
return err
}