summaryrefslogtreecommitdiffstats
path: root/modules/git/blob_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/blob_test.go')
-rw-r--r--modules/git/blob_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/git/blob_test.go b/modules/git/blob_test.go
index 2ceda6c4ef..34d8054d1e 100644
--- a/modules/git/blob_test.go
+++ b/modules/git/blob_test.go
@@ -6,7 +6,7 @@
package git
import (
- "io/ioutil"
+ "io"
"path/filepath"
"testing"
@@ -30,7 +30,7 @@ func TestBlob_Data(t *testing.T) {
assert.NoError(t, err)
require.NotNil(t, r)
- data, err := ioutil.ReadAll(r)
+ data, err := io.ReadAll(r)
assert.NoError(t, r.Close())
assert.NoError(t, err)
@@ -55,7 +55,7 @@ func Benchmark_Blob_Data(b *testing.B) {
if err != nil {
b.Fatal(err)
}
- ioutil.ReadAll(r)
+ io.ReadAll(r)
_ = r.Close()
}
}