golint & go vet
This commit is contained in:
parent
23e9f80935
commit
0281f9c746
|
@ -30,9 +30,8 @@ var (
|
||||||
func readFile(filename string) ([]byte, error) {
|
func readFile(filename string) ([]byte, error) {
|
||||||
if filename == "-" {
|
if filename == "-" {
|
||||||
return ioutil.ReadAll(os.Stdin)
|
return ioutil.ReadAll(os.Stdin)
|
||||||
} else {
|
|
||||||
return ioutil.ReadFile(filename)
|
|
||||||
}
|
}
|
||||||
|
return ioutil.ReadFile(filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractText(node *html.Node, w *bytes.Buffer) {
|
func extractText(node *html.Node, w *bytes.Buffer) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user