Skip to content

refactor: extract drainBody helper and fix unchecked error returns in HTTP/socket wait#332

Merged
jwilder merged 1 commit into
masterfrom
quality/20260612-091007
Jun 12, 2026
Merged

refactor: extract drainBody helper and fix unchecked error returns in HTTP/socket wait#332
jwilder merged 1 commit into
masterfrom
quality/20260612-091007

Conversation

@jwilder

@jwilder jwilder commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Extract drainBody(io.ReadCloser) to consolidate duplicated io.Copy + Body.Close() pattern
  • Explicitly discard conn.Close() error with blank identifier in waitForSocket
  • Reduces errcheck findings in production code from 9 to 6
  • gofmt cleanup of extra blank lines in import blocks

… HTTP/socket wait

- Extract drainBody(io.ReadCloser) to consolidate duplicated io.Copy + Body.Close() pattern
- Explicitly discard conn.Close() error with blank identifier in waitForSocket
- Reduces errcheck findings in production code from 9 to 6
- gofmt cleanup of extra blank lines in import blocks
@jwilder jwilder merged commit 8ec283f into master Jun 12, 2026
12 checks passed
@jwilder jwilder deleted the quality/20260612-091007 branch June 12, 2026 16:27
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