Skip to content

Commit

Permalink
memory-qos: golangci-lint fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Dec 9, 2024
1 parent 36b8c06 commit 0f319e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/plugins/memory-qos/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (

type plugin struct {
stub stub.Stub
mask stub.EventMask
config *pluginConfig
}

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0f319e5

Please sign in to comment.