mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-08 22:42:50 +02:00
lnd: fix gosimple warnings
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
f5fd4138a0
commit
8fb54782e2
@@ -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
|
||||
|
Reference in New Issue
Block a user