Skip to content

Commit b51fb30

Browse files
committedDec 20, 2024
Remove deprecated ioutil
1 parent d291cd6 commit b51fb30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎internal/util.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"crypto/tls"
66
"crypto/x509"
77
"fmt"
8-
"io/ioutil"
98
"os"
109
"reflect"
1110
"strings"
@@ -100,7 +99,7 @@ func pathOrContents(poc string) ([]byte, bool, error) {
10099
}
101100

102101
if _, err := os.Stat(path); err == nil {
103-
contents, err := ioutil.ReadFile(path)
102+
contents, err := os.ReadFile(path)
104103
if err != nil {
105104
return contents, true, err
106105
}

0 commit comments

Comments
 (0)
Please sign in to comment.