Skip to content

Commit 8318aa5

Browse files
authored
chore: remove refs to deprecated io/ioutil (#122)
Signed-off-by: guoguangwu <[email protected]>
1 parent 6a9bda4 commit 8318aa5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

codec_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"bytes"
2626
"flag"
2727
"fmt"
28-
"io/ioutil"
2928
"os"
3029
"path/filepath"
3130
"strings"
@@ -414,7 +413,7 @@ func TestSeedFuzzCorpus(t *testing.T) {
414413
corpusDir := filepath.Join(".", "testdata", "corpus")
415414
writeSeedFile := func(name, data string) error {
416415
path := filepath.Join(corpusDir, name)
417-
return ioutil.WriteFile(path, []byte(data), os.ModePerm)
416+
return os.WriteFile(path, []byte(data), os.ModePerm)
418417
}
419418
for _, fst := range fromStringTests {
420419
name := "seed_valid_" + fst.variant

0 commit comments

Comments
 (0)