From f67ce5ac8d8bc3f47563dd6512946d8947cf412a Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Thu, 4 Aug 2022 19:52:09 -0400 Subject: Fix lint errors Signed-off-by: Dave Henderson --- data/datasource_git_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/datasource_git_test.go') diff --git a/data/datasource_git_test.go b/data/datasource_git_test.go index 0c20c558..157e14a8 100644 --- a/data/datasource_git_test.go +++ b/data/datasource_git_test.go @@ -4,7 +4,7 @@ import ( "context" "encoding/base64" "fmt" - "io/ioutil" + "io" "net/url" "os" "strings" @@ -336,7 +336,7 @@ func TestOpenFileRepo(t *testing.T) { f, err := fs.Open("/foo/bar/hi.txt") assert.NilError(t, err) - b, _ := ioutil.ReadAll(f) + b, _ := io.ReadAll(f) assert.Equal(t, "hello world", string(b)) _, repo, err := g.clone(ctx, mustParseURL("git+file:///repo#main"), 0) @@ -375,7 +375,7 @@ func TestOpenBareFileRepo(t *testing.T) { f, err := fs.Open("/hello.txt") assert.NilError(t, err) - b, _ := ioutil.ReadAll(f) + b, _ := io.ReadAll(f) assert.Equal(t, "hello world", string(b)) } -- cgit v1.2.3