Skip to content

Commit

Permalink
Merge pull request #986 from ydb-platform/bodyclose
Browse files Browse the repository at this point in the history
bodyclose enabled
  • Loading branch information
asmyasnikov authored Dec 30, 2023
2 parents c642118 + 87b5fb7 commit 59e5a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ linters-settings:
linters:
enable-all: true
disable:
- bodyclose
- containedctx
- contextcheck
- cyclop
Expand Down
3 changes: 3 additions & 0 deletions examples/serverless/healthcheck/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ func (s *service) ping(path string) (code int32, err error) {
if err != nil {
return -1, err
}
defer func() {
_ = response.Body.Close()
}()
return int32(response.StatusCode), nil
}

Expand Down

0 comments on commit 59e5a95

Please sign in to comment.