Browse Source

Refactor file_checker.go

renovate/configure
Yota Toyama 8 years ago
parent
commit
183b4e898f
  1. 3
      file_checker.go

3
file_checker.go

@ -94,8 +94,7 @@ func (c fileChecker) parseFile(f string) (*html.Node, error) {
func (c fileChecker) extractURLs(n *html.Node) ([]string, error) { func (c fileChecker) extractURLs(n *html.Node) ([]string, error) {
us := make(map[string]bool) us := make(map[string]bool)
ns := []*html.Node{} ns := []*html.Node{n}
ns = append(ns, n)
addURL := func(u string) error { addURL := func(u string) error {
u, err := c.resolveURL(u) u, err := c.resolveURL(u)

Loading…
Cancel
Save