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:
@@ -220,8 +220,8 @@ func TestMakeXRegistryConfigHeader(t *testing.T) {
|
||||
decodedHeader, err := base64.URLEncoding.DecodeString(header[0])
|
||||
require.NoError(t, err, tc.name)
|
||||
// Don't test for a specific JSON representation, just for the expected contents.
|
||||
expected := map[string]interface{}{}
|
||||
actual := map[string]interface{}{}
|
||||
expected := map[string]any{}
|
||||
actual := map[string]any{}
|
||||
err = json.Unmarshal([]byte(tc.expectedContents), &expected)
|
||||
require.NoError(t, err, tc.name)
|
||||
err = json.Unmarshal(decodedHeader, &actual)
|
||||
@@ -282,8 +282,8 @@ func TestMakeXRegistryAuthHeader(t *testing.T) {
|
||||
decodedHeader, err := base64.URLEncoding.DecodeString(header[0])
|
||||
require.NoError(t, err, tc.name)
|
||||
// Don't test for a specific JSON representation, just for the expected contents.
|
||||
expected := map[string]interface{}{}
|
||||
actual := map[string]interface{}{}
|
||||
expected := map[string]any{}
|
||||
actual := map[string]any{}
|
||||
err = json.Unmarshal([]byte(tc.expectedContents), &expected)
|
||||
require.NoError(t, err, tc.name)
|
||||
err = json.Unmarshal(decodedHeader, &actual)
|
||||
|
||||
Reference in New Issue
Block a user