Browse Source

Refactor extension.go

renovate/configure
Yota Toyama 8 years ago
parent
commit
6303e390a7
  1. 8
      extensions.go

8
extensions.go

@ -1,9 +1,6 @@
package main package main
import ( import "path/filepath"
"path/filepath"
"strings"
)
var extensions = map[string]bool{ var extensions = map[string]bool{
".htm": true, ".htm": true,
@ -17,5 +14,6 @@ func isMarkupFile(f string) bool {
} }
func isHTMLFile(f string) bool { func isHTMLFile(f string) bool {
return strings.HasSuffix(f, ".html") || strings.HasSuffix(f, ".htm") e := filepath.Ext(f)
return e == ".html" || e == ".htm"
} }

Loading…
Cancel
Save