refactor: replace uses of ioutil with io and os (#223)

This commit is contained in:
Daniel Moran
2021-08-04 14:45:22 -04:00
committed by GitHub
parent aafdda744d
commit d615694ee9
38 changed files with 227 additions and 240 deletions

View File

@ -5,7 +5,6 @@ import (
"compress/gzip"
"context"
"io"
"io/ioutil"
"strings"
"testing"
@ -25,7 +24,7 @@ type bufferReader struct {
}
func (pr *bufferReader) Open(context.Context) (io.Reader, io.Closer, error) {
return &pr.buf, ioutil.NopCloser(nil), nil
return &pr.buf, io.NopCloser(nil), nil
}
type noopThrottler struct {