mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 01:27:20 +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 == "." {
|
||||
extmap[""] = true
|
||||
} else {
|
||||
if strings.HasPrefix(ext, ".") {
|
||||
ext = ext[1:]
|
||||
}
|
||||
ext = strings.TrimPrefix(ext, ".")
|
||||
if ext != "" {
|
||||
extmap[ext] = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user