golint & go vet

pull/5/head
Yasuhiro Matsumoto 2017-04-14 12:23:45 +09:00
parent 23e9f80935
commit 0281f9c746
1 changed files with 1 additions and 2 deletions

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) {