diff options
Diffstat (limited to 'modules/svg/discover_nobindata.go')
-rw-r--r-- | modules/svg/discover_nobindata.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/svg/discover_nobindata.go b/modules/svg/discover_nobindata.go index 8d857551dc..e3f13ddf6c 100644 --- a/modules/svg/discover_nobindata.go +++ b/modules/svg/discover_nobindata.go @@ -8,7 +8,7 @@ package svg import ( - "io/ioutil" + "os" "path/filepath" "code.gitea.io/gitea/modules/setting" @@ -20,7 +20,7 @@ func Discover() map[string]string { files, _ := filepath.Glob(filepath.Join(setting.StaticRootPath, "public", "img", "svg", "*.svg")) for _, file := range files { - content, err := ioutil.ReadFile(file) + content, err := os.ReadFile(file) if err == nil { filename := filepath.Base(file) svgs[filename[:len(filename)-4]] = string(content) |