diff options
Diffstat (limited to 'modules/svg/discover_bindata.go')
-rw-r--r-- | modules/svg/discover_bindata.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/svg/discover_bindata.go b/modules/svg/discover_bindata.go index 51fd8a4a6c..1f7af0c9f8 100644 --- a/modules/svg/discover_bindata.go +++ b/modules/svg/discover_bindata.go @@ -7,7 +7,6 @@ package svg import ( - "path" "path/filepath" "code.gitea.io/gitea/modules/public" @@ -22,7 +21,7 @@ func Discover() map[string]string { if matched { content, err := public.Asset(file) if err == nil { - filename := path.Base(file) + filename := filepath.Base(file) svgs[filename[:len(filename)-4]] = string(content) } } |