golint & go vet

This commit is contained in:
Yasuhiro Matsumoto 2017-04-14 12:23:45 +09:00
parent 23e9f80935
commit 0281f9c746

View File

@ -30,9 +30,8 @@ var (
func readFile(filename string) ([]byte, error) {
if filename == "-" {
return ioutil.ReadAll(os.Stdin)
} else {
return ioutil.ReadFile(filename)
}
return ioutil.ReadFile(filename)
}
func extractText(node *html.Node, w *bytes.Buffer) {