oklahomer/go-sarah

View on GitHub
_examples/simple/plugins/worldweather/client.go

Summary

Maintainability
A
40 mins
Test Coverage

Method Client.Get has 6 return statements (exceeds 4 allowed).
Open

func (client *Client) Get(ctx context.Context, apiType string, queryParams *url.Values, data interface{}) error {
    endpoint := client.buildEndpoint(apiType, queryParams)
    req, err := http.NewRequest(http.MethodGet, endpoint.String(), nil)
    if err != nil {
        return fmt.Errorf("failed to build request: %w", err)
Severity: Major
Found in _examples/simple/plugins/worldweather/client.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status