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 committed 2016-05-30 20:52:17 -07:00
1 parent 4d763e07f7
commit 83b11c5efe
1 file changed
+1 -1
+1 -1
View File
@@ -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
}
}