lnwire: fix writeElement [][20]byte bug

Passing the [20]byte as a *[20]byte results in a type switch error as
there isn’t a case for that type within writeElement.
This commit is contained in:
Olaoluwa Osuntokun 2016-05-30 16:49:00 -07:00
parent 4d763e07f7
commit 83b11c5efe
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -178,7 +178,7 @@ func writeElement(w io.Writer, element interface{}) error {
// Then write each out sequentially.
for _, element := range e {
if err := writeElement(w, &element); err != nil {
if err := writeElement(w, element); err != nil {
return err
}
}