Showing 3 of 3 total issues
Function GetAbsoluteURL
has 5 return statements (exceeds 4 allowed). Open
Open
func GetAbsoluteURL(fullURL string, relative string) (string, error) {
const op = "HTTPUtil.GetAbsoluteURL"
full, err := url.Parse(fullURL)
if err != nil {
return "", errors.NewInvalid(err, "Error parsing full URI", op)
Method httpClient.Do
has 5 return statements (exceeds 4 allowed). Open
Open
func (h *httpClient) Do(url, method string) (*Response, error) {
const op = "HTTPClient.Do"
resp, err := h.cycle.Do(url, options, method)
// Setup the response data.
Method scrape.Scrape
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *scrape) Scrape(uri string, selector string) (string, error) {
const op = "Scraper.Scrape"
response, err := s.client.Do(uri, http.MethodGet)
if err != nil {