From 6831e3faf3a3c371a21e99c4b4fc1cbfb1fad62d Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 18 Nov 2017 13:19:07 +0900 Subject: [PATCH] s/ss/us/g --- file_checker.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/file_checker.go b/file_checker.go index 59d80af..99a4b28 100644 --- a/file_checker.go +++ b/file_checker.go @@ -78,7 +78,7 @@ func (r fileResult) Ok() bool { } func extractURLs(n *html.Node) []string { - ss := make(map[string]bool) + us := make(map[string]bool) ns := make([]*html.Node, 0, 1024) ns = append(ns, n) @@ -92,14 +92,14 @@ func extractURLs(n *html.Node) []string { case "a": for _, a := range n.Attr { if a.Key == "href" && isURL(a.Val) { - ss[a.Val] = true + us[a.Val] = true break } } case "img": for _, a := range n.Attr { if a.Key == "src" && isURL(a.Val) { - ss[a.Val] = true + us[a.Val] = true break } } @@ -111,7 +111,7 @@ func extractURLs(n *html.Node) []string { } } - return stringSetToSlice(ss) + return stringSetToSlice(us) } func isURL(s string) bool {