Skip to content

Commit

Permalink
fix: storage/kubernetes: Suppress linter warning an effectively const…
Browse files Browse the repository at this point in the history
…ant parameter

Reported by golangci-lint v1.50.1
  • Loading branch information
dlipovetsky committed Jan 18, 2023
1 parent 41e5b55 commit 3cdad54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (cli *client) getResource(apiVersion, namespace, resource, name string, v i
return cli.getURL(u, v)
}

func (cli *client) listN(resource string, v interface{}, n int) error {
func (cli *client) listN(resource string, v interface{}, n int) error { //nolint:unparam // In practice, n is the gcResultLimit constant.
params := url.Values{}
params.Add("limit", fmt.Sprintf("%d", n))
u, err := cli.urlForWithParams(cli.apiVersion, cli.namespace, resource, "", params)
Expand Down

0 comments on commit 3cdad54

Please sign in to comment.