Skip to content

Commit ec9bc53

Browse files
Bryan C. Millsgopherbot
Bryan C. Mills
authored andcommitted
internal/gopathwalk: use os.ReadFile instead of ioutil.ReadFile
ioutil.ReadFile is deprecated. Change-Id: I6854af32d05e4a3ea2ad00002fb39f4d87fc1794 Reviewed-on: https://go-review.googlesource.com/c/tools/+/508504 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Bryan Mills <[email protected]> Auto-Submit: Bryan Mills <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> gopls-CI: kokoro <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent aac7fb6 commit ec9bc53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/gopathwalk/walk.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"bufio"
1111
"bytes"
1212
"fmt"
13-
"io/ioutil"
1413
"log"
1514
"os"
1615
"path/filepath"
@@ -135,7 +134,7 @@ func (w *walker) init() {
135134
// The provided path is one of the $GOPATH entries with "src" appended.
136135
func (w *walker) getIgnoredDirs(path string) []string {
137136
file := filepath.Join(path, ".goimportsignore")
138-
slurp, err := ioutil.ReadFile(file)
137+
slurp, err := os.ReadFile(file)
139138
if w.opts.Logf != nil {
140139
if err != nil {
141140
w.opts.Logf("%v", err)

0 commit comments

Comments
 (0)