Merge pull request #2288 from cfromknecht/wtwire-error-handling

[trivial] watchtower/wtwire/wtwire: fix missed error handling
This commit is contained in:
Olaoluwa Osuntokun 2018-12-06 16:08:08 -08:00 committed by GitHub
commit 73e1f2957c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: