1
0
mirror of https://github.com/mgechev/revive.git synced 2025-03-17 20:57:58 +02:00

refactor: remove refs to io/ioutil (#918)

Signed-off-by: ginglis13 <ginglis05@gmail.com>
This commit is contained in:
Gavin Inglis 2023-10-14 10:25:25 -07:00 committed by GitHub
parent 8dbd58748a
commit 1ef3c0f554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/