mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
Merge pull request #2288 from cfromknecht/wtwire-error-handling
[trivial] watchtower/wtwire/wtwire: fix missed error handling
This commit is contained in:
commit
73e1f2957c
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