fixed missing return statements on error for fetch url
This commit is contained in:
parent
59d63bbb77
commit
60af84994e
1 changed files with 4 additions and 4 deletions
|
@ -155,13 +155,13 @@ func getFilterResultURL(filter *Filter, urlCache map[string]string, useCache boo
|
||||||
|
|
||||||
resp, err := http.Get(url)
|
resp, err := http.Get(url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
filter.log("Could not fetch url: ", url)
|
filter.log("Could not fetch url: ", url, " - ", err)
|
||||||
filter.log("Reason: ", err)
|
return
|
||||||
}
|
}
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
filter.log("Could not fetch url: ", url)
|
filter.log("Could not fetch url: ", url, " - ", err)
|
||||||
filter.log("Reason: ", err)
|
return
|
||||||
}
|
}
|
||||||
str := string(body)
|
str := string(body)
|
||||||
filter.Results = append(filter.Results, str)
|
filter.Results = append(filter.Results, str)
|
||||||
|
|
Loading…
Add table
Reference in a new issue