mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
chore(code): replace interface{} with any EE-6513 (#11986)
This commit is contained in:
parent
9c4935286f
commit
f0d43f941f
66 changed files with 231 additions and 231 deletions
|
@ -16,7 +16,7 @@ func TestJSONWithStatus(t *testing.T) {
|
|||
|
||||
tests := []struct {
|
||||
name string
|
||||
data interface{}
|
||||
data any
|
||||
status int
|
||||
}{
|
||||
{
|
||||
|
@ -57,7 +57,7 @@ func TestJSON(t *testing.T) {
|
|||
|
||||
tests := []struct {
|
||||
name string
|
||||
data interface{}
|
||||
data any
|
||||
status int
|
||||
}{
|
||||
{
|
||||
|
@ -88,7 +88,7 @@ func TestJSON(t *testing.T) {
|
|||
func TestYAML(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
data interface{}
|
||||
data any
|
||||
expected string
|
||||
invalid bool
|
||||
}{
|
||||
|
@ -105,7 +105,7 @@ func TestYAML(t *testing.T) {
|
|||
},
|
||||
{
|
||||
name: "doesn't support an Object",
|
||||
data: map[string]interface{}{
|
||||
data: map[string]any{
|
||||
"key": "value",
|
||||
},
|
||||
expected: "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue