Skip to content

Commit

Permalink
refactor: remove refs to io/ioutil
Browse files Browse the repository at this point in the history
io/ioutil has been deprecated since Go 1.16
https://pkg.go.dev/io/ioutil

Signed-off-by: ginglis13 <[email protected]>
  • Loading branch information
ginglis13 committed Oct 14, 2023
1 parent 8dbd587 commit fcd0944
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testdata/unhandled-error-w-ignorelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package fixtures
import (
b "bytes"
"fmt"
"io/ioutil"
"net"
"os"
)
Expand Down Expand Up @@ -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/
Expand Down

0 comments on commit fcd0944

Please sign in to comment.