mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-09-11 17:46:08 +03:00
go lint fix
This commit is contained in:
parent
9ddeea3895
commit
967bc978a6
@ -90,13 +90,13 @@ func getTitleWithDom(r *Response) (*html.Node, error) {
|
||||
if title != nil {
|
||||
return title, nil
|
||||
}
|
||||
return nil, fmt.Errorf("Title not found")
|
||||
return nil, fmt.Errorf("title not found")
|
||||
}
|
||||
|
||||
func renderNode(n *html.Node) string {
|
||||
var buf bytes.Buffer
|
||||
w := io.Writer(&buf)
|
||||
html.Render(w, n)
|
||||
html.Render(w, n) //nolint
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user