Skip to content

fix(hooks) defer Close() after known not-nil#21

Open
alrs wants to merge 1 commit into
badkaktus:masterfrom
alrs:hooks-defer
Open

fix(hooks) defer Close() after known not-nil#21
alrs wants to merge 1 commit into
badkaktus:masterfrom
alrs:hooks-defer

Conversation

@alrs
Copy link
Copy Markdown

@alrs alrs commented May 5, 2026

This moves the res.Body.Close() after the err check so as to not be closing on a nil.

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