Skip to content

refactor: use local body variables in response handling#14

Merged
spiegel-im-spiegel merged 1 commit into
mainfrom
refactor/response-body-local-var
May 9, 2026
Merged

refactor: use local body variables in response handling#14
spiegel-im-spiegel merged 1 commit into
mainfrom
refactor/response-body-local-var

Conversation

@spiegel-im-spiegel
Copy link
Copy Markdown
Member

Summary

  • store resp.Body() into local variables in response.Close and response.DumpBodyAndClose
  • avoid repeated resp.Body() calls and keep close/error handling behavior unchanged
  • include related small cleanup updates in client.go

Validation

  • task test

@spiegel-im-spiegel spiegel-im-spiegel merged commit dce7627 into main May 9, 2026
4 checks passed
@spiegel-im-spiegel spiegel-im-spiegel deleted the refactor/response-body-local-var branch May 9, 2026 13:09
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