lnd: fix gosimple warnings

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-03-13 16:30:23 -07:00
1 parent f5fd4138a0
commit 8fb54782e2
30 files changed
+73 -319

No files matched your search

+1 -5
View File
@@ -244,11 +244,7 @@ func WriteMessage(w io.Writer, msg Message, pver uint32, btcnet wire.BitcoinNet)
// Write payload the payload itself after the header.
n, err = w.Write(payload)
totalBytes += n
if err != nil {
return totalBytes, err
}
return totalBytes, nil
return totalBytes, err
}
// ReadMessageN reads, validates, and parses the next bitcoin Message from r for