Skip to content

chore: lint fixes part 7#259

Open
pawbana wants to merge 1 commit intopb/coder-lint-fix6from
pb/coder-lint-fix7
Open

chore: lint fixes part 7#259
pawbana wants to merge 1 commit intopb/coder-lint-fix6from
pb/coder-lint-fix7

Conversation

@pawbana
Copy link
Copy Markdown
Contributor

@pawbana pawbana commented Apr 10, 2026

  • bodyclose (65 → 0): changed makeRequest to return (*http.Response, error) so callers properly handle errors and close response bodies; updated all ~55 call sites across bridge_test.go,
    circuit_breaker_test.go, metrics_test.go, responses_test.go, trace_test.go, apidump_test.go;

refactored circuit breaker doRequest helpers to return int (status code) since they fully consume and close the
body; added defer resp.Body.Close() for http.ReadResponse, setupInjectedToolTest, and middleware test responses; added nolint for nil-response error case in RoundTrip test

Copy link
Copy Markdown
Contributor Author

pawbana commented Apr 10, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant