diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2021-12-02 00:14:15 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-02 00:14:15 +1100 |
| commit | 7df242f1e3f7364e3e9007421263e445266e8f57 (patch) | |
| tree | 3ef37d0e8e519938feb15cbab5343915fe93ae66 /internal/configuration/helpers.go | |
| parent | 8a12af97abfe6ee13abdc3082fcb5996dd9badeb (diff) | |
refactor: remove ioutil (#2635)
Was deprecated in 1.16 and has more performant options available.
Diffstat (limited to 'internal/configuration/helpers.go')
| -rw-r--r-- | internal/configuration/helpers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/configuration/helpers.go b/internal/configuration/helpers.go index 43a54e179..0f5e0b215 100644 --- a/internal/configuration/helpers.go +++ b/internal/configuration/helpers.go @@ -1,7 +1,7 @@ package configuration import ( - "io/ioutil" + "os" "strings" "github.com/authelia/authelia/v4/internal/utils" @@ -46,7 +46,7 @@ func isSecretKey(key string) (isSecretKey bool) { } func loadSecret(path string) (value string, err error) { - content, err := ioutil.ReadFile(path) + content, err := os.ReadFile(path) if err != nil { return "", err } |
