remote/http_client.go

Summary

Maintainability
A
50 mins
Test Coverage

Method HTTPClient.GTFSRequest has 8 return statements (exceeds 4 allowed).
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)
Severity: Major
Found in remote/http_client.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status