multi: replace ioutil.Discard

This commit is contained in:
erik authored and ErikEk committed 2024-04-25 11:23:54 +02:00
1 parent 789c6bac8c
commit c7f81d3142
3 files changed
+4 -7

No files matched your search

+1 -2
View File
@@ -7,7 +7,6 @@ import (
"encoding/binary"
"fmt"
"io"
"io/ioutil"
"github.com/davecgh/go-spew/spew"
"github.com/go-errors/errors"
@@ -1304,7 +1303,7 @@ func DecodeFailure(r io.Reader, pver uint32) (FailureMessage, error) {
return nil, fmt.Errorf("unable to read pad len: %w", err)
}
if _, err := io.CopyN(ioutil.Discard, r, int64(padLength)); err != nil {
if _, err := io.CopyN(io.Discard, r, int64(padLength)); err != nil {
return nil, fmt.Errorf("unable to read padding %w", err)
}