Skip to content

Commit

Permalink
fix: replace any with interface{}
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewDolan committed Jul 19, 2023
1 parent c81332f commit a9dc75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func TestInvokes(t *testing.T) {
input: `{ "i": 1 }`,
expected: expected{`null`, nil},
handler: func(in struct {
I any `json:"i"`
I interface{} `json:"i"`
}) error {
if _, ok := in.I.(json.Number); !ok {
return fmt.Errorf("`i` was not of type json.Number: %T", in.I)
Expand All @@ -305,7 +305,7 @@ func TestInvokes(t *testing.T) {
input: `{ "i": 1 }`,
expected: expected{`null`, nil},
handler: func(in struct {
I any `json:"i"`
I interface{} `json:"i"`
}) error {
if _, ok := in.I.(float64); !ok {
return fmt.Errorf("`i` was not of type float64: %T", in.I)
Expand Down

0 comments on commit a9dc75a

Please sign in to comment.