remote/http_client.go
Method HTTPClient.GTFSRequest
has 8 return statements (exceeds 4 allowed). Open
Open
func (c *HTTPClient) GTFSRequest() (*gtfs.FeedMessage, error) {
ctx, cncl := context.WithTimeout(context.Background(), 60*time.Second)
defer cncl()
httpRequest, err := http.NewRequestWithContext(ctx, http.MethodGet, c.Url, nil)