fixed missing return
This commit is contained in:
parent
33130248cb
commit
de22299628
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ func getQueryResult(query *Query) []string {
|
||||||
doc, err := htmlquery.LoadURL(query.URL.URL)
|
doc, err := htmlquery.LoadURL(query.URL.URL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("Something went wrong loading loading", query.URL.URL)
|
log.Print("Something went wrong loading loading", query.URL.URL)
|
||||||
|
return []string{}
|
||||||
}
|
}
|
||||||
nodes, _ := htmlquery.QueryAll(doc, query.Query)
|
nodes, _ := htmlquery.QueryAll(doc, query.Query)
|
||||||
nodeStrings := make([]string, len(nodes))
|
nodeStrings := make([]string, len(nodes))
|
||||||
|
|
Loading…
Add table
Reference in a new issue