mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +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:
@@ -12,7 +12,7 @@ var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
// DeepCopy does a deep copy of a structure
|
||||
// Error checking of parameters delegated to json engine
|
||||
var DeepCopy = func(dst interface{}, src interface{}) error {
|
||||
var DeepCopy = func(dst any, src any) error {
|
||||
payload, err := json.Marshal(src)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user