mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 02:57:51 +01:00
Corrected to pass lint gosimple
This commit is contained in:
parent
c48c37ad09
commit
c6d5a7984d
@ -76,9 +76,7 @@ func extensionsFromString(from string) map[string]bool {
|
||||
if ext == "." {
|
||||
extmap[""] = true
|
||||
} else {
|
||||
if strings.HasPrefix(ext, ".") {
|
||||
ext = ext[1:]
|
||||
}
|
||||
ext = strings.TrimPrefix(ext, ".")
|
||||
if ext != "" {
|
||||
extmap[ext] = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user