[#133] lint: Update golangci-lint to v1.60 and fix issues
Some checks reported warnings
/ Builds (1.21) (pull_request) Has been cancelled
/ Builds (1.22) (pull_request) Has been cancelled
/ DCO (pull_request) Has been cancelled
/ Lint (pull_request) Has been cancelled
/ Tests (1.21) (pull_request) Has been cancelled
/ Tests (1.22) (pull_request) Has been cancelled
/ Vulncheck (pull_request) Has been cancelled

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2024-08-22 20:39:07 +03:00
parent fcf99d9a59
commit 26e683f90d
5 changed files with 7 additions and 11 deletions

View file

@ -30,12 +30,12 @@ func (c *httpCarrier) Set(key string, value string) {
func (c *httpCarrier) Keys() []string {
dict := make(map[string]interface{})
c.r.Request.Header.VisitAll(
func(key, value []byte) {
func(key, _ []byte) {
dict[string(key)] = true
},
)
c.r.Response.Header.VisitAll(
func(key, value []byte) {
func(key, _ []byte) {
dict[string(key)] = true
},
)