mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: suppress filters.ToParamWithVersion lint warning
Add annotations to suppress warnings like this one: > client/container_list.go:38:22: SA1019: filters.ToParamWithVersion is deprecated: Use ToJSON (staticcheck) > filterJSON, err := filters.ToParamWithVersion(cli.version, options.Filters) > ^ Modify the deprecation notice to specify it is applicable to new code only. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
d8ec1ee57d
commit
d584242236
@@ -24,6 +24,7 @@ func (cli *Client) ImageList(ctx context.Context, options types.ImageListOptions
|
||||
}
|
||||
}
|
||||
if optionFilters.Len() > 0 {
|
||||
//lint:ignore SA1019 for old code
|
||||
filterJSON, err := filters.ToParamWithVersion(cli.version, optionFilters)
|
||||
if err != nil {
|
||||
return images, err
|
||||
|
||||
Reference in New Issue
Block a user