Skip to content

fix(lint): add error checking for resp.Body.Close in dcr/client.go #23

fix(lint): add error checking for resp.Body.Close in dcr/client.go

fix(lint): add error checking for resp.Body.Close in dcr/client.go #23

Triggered via push February 4, 2026 18:46
Status Failure
Total duration 2m 28s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors
Lint: pkg/auth/dcr/client_test.go#L241
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
Lint: pkg/auth/dcr/client_test.go#L174
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
Lint: pkg/auth/dcr/client_test.go#L148
Error return value of `w.Write` is not checked (errcheck)
Lint: pkg/auth/dcr/client_test.go#L111
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
Lint: pkg/auth/callback/server_test.go#L238
Error return value of `server.Stop` is not checked (errcheck)
Lint: pkg/auth/callback/server_test.go#L209
Error return value of `resp.Body.Close` is not checked (errcheck)
Lint: pkg/auth/callback/server_test.go#L196
Error return value of `server.Stop` is not checked (errcheck)
Lint: pkg/auth/callback/server_test.go#L167
Error return value of `resp.Body.Close` is not checked (errcheck)
Lint: pkg/auth/callback/server_test.go#L154
Error return value of `server.Stop` is not checked (errcheck)
Lint: pkg/auth/callback/server_test.go#L117
Error return value of `resp.Body.Close` is not checked (errcheck)
Test and Coverage
Process completed with exit code 1.