mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 09:37:19 +00:00
Corrected to pass lint gosimple
This commit is contained in:
@ -76,9 +76,7 @@ func extensionsFromString(from string) map[string]bool {
|
|||||||
if ext == "." {
|
if ext == "." {
|
||||||
extmap[""] = true
|
extmap[""] = true
|
||||||
} else {
|
} else {
|
||||||
if strings.HasPrefix(ext, ".") {
|
ext = strings.TrimPrefix(ext, ".")
|
||||||
ext = ext[1:]
|
|
||||||
}
|
|
||||||
if ext != "" {
|
if ext != "" {
|
||||||
extmap[ext] = true
|
extmap[ext] = true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user