From fcd0944e7bb22a069045894a11150ead7e909b68 Mon Sep 17 00:00:00 2001 From: ginglis13 Date: Fri, 13 Oct 2023 15:27:32 -0700 Subject: [PATCH] refactor: remove refs to io/ioutil io/ioutil has been deprecated since Go 1.16 https://pkg.go.dev/io/ioutil Signed-off-by: ginglis13 --- testdata/unhandled-error-w-ignorelist.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testdata/unhandled-error-w-ignorelist.go b/testdata/unhandled-error-w-ignorelist.go index d52ab19ce..e1050c48c 100644 --- a/testdata/unhandled-error-w-ignorelist.go +++ b/testdata/unhandled-error-w-ignorelist.go @@ -3,7 +3,6 @@ package fixtures import ( b "bytes" "fmt" - "io/ioutil" "net" "os" ) @@ -38,7 +37,7 @@ func testCase2() { os.Chmod("test_file", os.ModeAppend) // ignore os.WriteFile("test_file", []byte("some data"), os.ModeAppend) // ignore - ioutil.WriteFile("test_file", []byte("some data"), os.ModeAppend) // MATCH /Unhandled error in call to function ioutil.WriteFile/ + os.WriteFile("test_file", []byte("some data"), os.ModeAppend) // ignore _ = os.Chdir("..") os.Chdir("..") // MATCH /Unhandled error in call to function os.Chdir/