Skip to content

Fix unchecked error on resp.Body.Close in genmodels#1036

Merged
SachaProbo merged 1 commit intomainfrom
SachaProbo/fix-errcheck-close
Apr 13, 2026
Merged

Fix unchecked error on resp.Body.Close in genmodels#1036
SachaProbo merged 1 commit intomainfrom
SachaProbo/fix-errcheck-close

Conversation

@SachaProbo
Copy link
Copy Markdown
Contributor

@SachaProbo SachaProbo commented Apr 13, 2026

Summary by cubic

Fix unchecked error on resp.Body.Close in internal/cmd/genmodels by deferring a closure that safely ignores the Close error. Satisfies errcheck without changing runtime behavior.

Written for commit e42979e. Summary will update on new commits.

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@SachaProbo SachaProbo merged commit e42979e into main Apr 13, 2026
18 checks passed
@SachaProbo SachaProbo deleted the SachaProbo/fix-errcheck-close branch April 13, 2026 16:44
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