mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
watchtower/wtwire/wtwire: fix missed error handling
This commit is contained in:
parent
45f49899ae
commit
226640aa3c
1 changed files with 2 additions and 2 deletions
|
@ -148,12 +148,12 @@ func ReadElement(r io.Reader, element interface{}) error {
|
|||
|
||||
case *[32]byte:
|
||||
if _, err := io.ReadFull(r, e[:]); err != nil {
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
case *[33]byte:
|
||||
if _, err := io.ReadFull(r, e[:]); err != nil {
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
case *[]byte:
|
||||
|
|
Loading…
Add table
Reference in a new issue