multi: fix linter warnings with updated linter
This commit is contained in:
11 files changed
+23
-26
No files matched your search
+2
-2
@@ -26,7 +26,7 @@ func (m *Musig2Nonce) Record() tlv.Record {
|
||||
}
|
||||
|
||||
// nonceTypeEncoder is a custom TLV encoder for the Musig2Nonce type.
|
||||
func nonceTypeEncoder(w io.Writer, val interface{}, buf *[8]byte) error {
|
||||
func nonceTypeEncoder(w io.Writer, val interface{}, _ *[8]byte) error {
|
||||
if v, ok := val.(*Musig2Nonce); ok {
|
||||
_, err := w.Write(v[:])
|
||||
return err
|
||||
@@ -36,7 +36,7 @@ func nonceTypeEncoder(w io.Writer, val interface{}, buf *[8]byte) error {
|
||||
}
|
||||
|
||||
// nonceTypeDecoder is a custom TLV decoder for the Musig2Nonce record.
|
||||
func nonceTypeDecoder(r io.Reader, val interface{}, buf *[8]byte,
|
||||
func nonceTypeDecoder(r io.Reader, val interface{}, _ *[8]byte,
|
||||
l uint64) error {
|
||||
|
||||
if v, ok := val.(*Musig2Nonce); ok {
|
||||
|
||||
@@ -137,7 +137,7 @@ func (p *PartialSigWithNonce) Record() tlv.Record {
|
||||
// partialSigWithNonceTypeEncoder encodes 98-byte musig2 extended partial
|
||||
// signature as: s {32} || nonce {66}.
|
||||
func partialSigWithNonceTypeEncoder(w io.Writer, val interface{},
|
||||
buf *[8]byte) error {
|
||||
_ *[8]byte) error {
|
||||
|
||||
if v, ok := val.(*PartialSigWithNonce); ok {
|
||||
sigBytes := v.Sig.Bytes()
|
||||
|
||||
+2
-2
@@ -29,7 +29,7 @@ func (s *ShutdownNonce) Record() tlv.Record {
|
||||
|
||||
// shutdownNonceTypeEncoder is a custom TLV encoder for the Musig2Nonce type.
|
||||
func shutdownNonceTypeEncoder(w io.Writer, val interface{},
|
||||
buf *[8]byte) error {
|
||||
_ *[8]byte) error {
|
||||
|
||||
if v, ok := val.(*ShutdownNonce); ok {
|
||||
_, err := w.Write(v[:])
|
||||
@@ -40,7 +40,7 @@ func shutdownNonceTypeEncoder(w io.Writer, val interface{},
|
||||
}
|
||||
|
||||
// shutdownNonceTypeDecoder is a custom TLV decoder for the Musig2Nonce record.
|
||||
func shutdownNonceTypeDecoder(r io.Reader, val interface{}, buf *[8]byte,
|
||||
func shutdownNonceTypeDecoder(r io.Reader, val interface{}, _ *[8]byte,
|
||||
l uint64) error {
|
||||
|
||||
if v, ok := val.(*ShutdownNonce); ok {
|
||||
|
||||
Reference in new issue
Block a user