Skip to content

Commit

Permalink
Remove deprecated ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreprinetti committed Dec 20, 2024
1 parent e3a3b7c commit f67ecca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"os"
"reflect"
"strings"
Expand Down Expand Up @@ -100,7 +99,7 @@ func pathOrContents(poc string) ([]byte, bool, error) {
}

if _, err := os.Stat(path); err == nil {
contents, err := ioutil.ReadFile(path)
contents, err := os.ReadFile(path)
if err != nil {
return contents, true, err
}
Expand Down

0 comments on commit f67ecca

Please sign in to comment.