all: enable use-any revive rule (#417)
Enable the `use-any` `revive` rule which requires replacing the empty
interface `interface{}` with `any`.
This commit is contained in:
committed by
GitHub
parent
d84f103398
commit
11e0a2138b
@@ -266,7 +266,7 @@ func AssertPredecessors(t *testing.T, f *ir.Function, expect map[string][]string
|
||||
AssertEqual(t, "predecessors", OpcodePredecessorGraph(f), expect)
|
||||
}
|
||||
|
||||
func AssertEqual(t *testing.T, what string, got, expect interface{}) {
|
||||
func AssertEqual(t *testing.T, what string, got, expect any) {
|
||||
t.Helper()
|
||||
t.Logf("%s=%#v\n", what, got)
|
||||
if reflect.DeepEqual(expect, got) {
|
||||
|
||||
Reference in New Issue
Block a user