multi: update linter, fix new issues

This commit is contained in:
Oliver Gugger committed 2023-06-13 11:58:33 +02:00
1 parent e549096b88
commit 56dba2df03
31 files changed
+263 -301

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ func (c *Warning) Warning() string {
// io.Reader observing the specified protocol version.
//
// This is part of the lnwire.Message interface.
func (c *Warning) Decode(r io.Reader, pver uint32) error {
func (c *Warning) Decode(r io.Reader, _ uint32) error {
return ReadElements(r,
&c.ChanID,
&c.Data,
@@ -59,7 +59,7 @@ func (c *Warning) Decode(r io.Reader, pver uint32) error {
// protocol version specified.
//
// This is part of the lnwire.Message interface.
func (c *Warning) Encode(w *bytes.Buffer, pver uint32) error {
func (c *Warning) Encode(w *bytes.Buffer, _ uint32) error {
if err := WriteBytes(w, c.ChanID[:]); err != nil {
return err
}