Commit a153773
fix(lint): add error checking for resp.Body.Close in dcr/client.go
Add proper error handling for deferred resp.Body.Close() calls in
DCR client Register() and RequestTokens() methods. Use defer func
pattern to check and handle (but not fail on) close errors.
This fixes errcheck violations in production code.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 10b5671 commit a153773
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
153 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
| |||
0 commit comments