mirror of
https://github.com/containers/podman.git
synced 2025-11-29 17:48:05 +08:00
run modernize -fix ./...
Using golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize + some manual cleanup in libpod/lock/shm/shm_lock_test.go as it generated an unused variable + restored one removed comment Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"maps"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -294,9 +295,7 @@ func CompleteSpec(ctx context.Context, r *libpod.Runtime, s *specgen.SpecGenerat
|
||||
annotations[k] = v
|
||||
}
|
||||
// now pass in the values from client
|
||||
for k, v := range s.Annotations {
|
||||
annotations[k] = v
|
||||
}
|
||||
maps.Copy(annotations, s.Annotations)
|
||||
s.Annotations = annotations
|
||||
|
||||
if len(s.SeccompProfilePath) < 1 {
|
||||
|
||||
Reference in New Issue
Block a user