qba73/geonames

View on GitHub
geonames.go

Summary

Maintainability
A
40 mins
Test Coverage
F
54%

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

func (c Client) get(ctx context.Context, url string, data any) error {
    req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
    if err != nil {
        return fmt.Errorf("creating request: %w", err)
    }
Severity: Major
Found in geonames.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status