Browse Source

Corrected to pass lint gosimple

pull/7767/head
Guillermo Prandi 6 years ago
parent
commit
c6d5a7984d
  1. 4
      modules/setting/indexer.go

4
modules/setting/indexer.go

@ -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…
Cancel
Save