watchtower/wtwire/wtwire: fix missed error handling
This commit is contained in:
parent
45f49899ae
commit
226640aa3c
@ -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…
Reference in New Issue
Block a user