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:
parent
8dbd58748a
commit
1ef3c0f554
3
testdata/unhandled-error-w-ignorelist.go
vendored
3
testdata/unhandled-error-w-ignorelist.go
vendored
@ -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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user