Skip to content

Commit 896ac5a

Browse files
committed
refactor: remove deprecated ioutils
1 parent 24ab496 commit 896ac5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/js/proto/proto.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package gazelle
22

33
import (
44
"bytes"
5-
"io/ioutil"
65
"log"
6+
"os"
77
"regexp"
88
"slices"
99
"strconv"
@@ -53,7 +53,7 @@ func IsRulesTsProtoBuiltin(imp string) bool {
5353
}
5454

5555
func GetProtoImports(filepath string) ([]string, error) {
56-
content, err := ioutil.ReadFile(filepath)
56+
content, err := os.ReadFile(filepath)
5757
if err != nil {
5858
return nil, err
5959
}

0 commit comments

Comments
 (0)