From 0f319e5431b3dd42fbc26312cd8721fe2fbbfe38 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Mon, 9 Dec 2024 20:14:02 +0200 Subject: [PATCH] memory-qos: golangci-lint fixes. Signed-off-by: Krisztian Litkey --- cmd/plugins/memory-qos/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/plugins/memory-qos/main.go b/cmd/plugins/memory-qos/main.go index 98c06a901..ad5dd7d11 100644 --- a/cmd/plugins/memory-qos/main.go +++ b/cmd/plugins/memory-qos/main.go @@ -32,7 +32,6 @@ import ( type plugin struct { stub stub.Stub - mask stub.EventMask config *pluginConfig } @@ -216,7 +215,7 @@ func (p *plugin) CreateContainer(ctx context.Context, pod *api.PodSandbox, ctr * return nil, nil, errWithContext } class = value - case sliceContains(p.config.UnifiedAnnotations, annPrefix) == true: + case sliceContains(p.config.UnifiedAnnotations, annPrefix): unified[annPrefix] = value log.Tracef("applying unified annotation %q resulted in unified=%v", annPrefix, unified) default: