diff --git a/src/runtime/virtcontainers/pkg/cpuset/cpuset.go b/src/runtime/virtcontainers/pkg/cpuset/cpuset.go index ee944c9714..a83b13273c 100644 --- a/src/runtime/virtcontainers/pkg/cpuset/cpuset.go +++ b/src/runtime/virtcontainers/pkg/cpuset/cpuset.go @@ -57,6 +57,7 @@ func (b Builder) Add(elems ...int) { // Result returns the result CPUSet containing all elements that were // previously added to this builder. Subsequent calls to Add have no effect. func (b Builder) Result() CPUSet { + // nolint: staticcheck b.done = true return b.result }