From 83b11c5efe837d58f2804ef3e91268f3d70b287f Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 30 May 2016 16:49:00 -0700 Subject: [PATCH] lnwire: fix writeElement [][20]byte bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- lnwire/lnwire.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwire/lnwire.go b/lnwire/lnwire.go index 67e4629c..e4d88d9b 100644 --- a/lnwire/lnwire.go +++ b/lnwire/lnwire.go @@ -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 } }