mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 03:57:40 +02:00
multi: replace ioutil.Discard
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"math"
|
||||
)
|
||||
|
||||
@@ -262,7 +261,7 @@ func (s *Stream) decode(r io.Reader, parsedTypes TypeMap, p2p bool) (TypeMap,
|
||||
// If the caller provided an initialized TypeMap, record
|
||||
// the encoded bytes.
|
||||
var b *bytes.Buffer
|
||||
writer := ioutil.Discard
|
||||
writer := io.Discard
|
||||
if parsedTypes != nil {
|
||||
b = bytes.NewBuffer(make([]byte, 0, length))
|
||||
writer = b
|
||||
|
Reference in New Issue
Block a user