diff --git a/internal/config/load.go b/internal/config/load.go index f080418..7ea52d3 100644 --- a/internal/config/load.go +++ b/internal/config/load.go @@ -21,7 +21,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "net/http" "os" "path/filepath" @@ -56,7 +55,7 @@ func LoadValidatorFromFile(path string) (*canaryv1.Validator, error) { return nil, fmt.Errorf("no such file %s", filename) } - yamlFile, err := ioutil.ReadFile(filename) + yamlFile, err := os.ReadFile(filename) if err != nil { return nil, err }