mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
code cleanup: replace interface{} with any (#906)
This commit is contained in:
committed by
GitHub
parent
5ccebe86c2
commit
36c2ee2718
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
func TestCyclomatic(t *testing.T) {
|
||||
testRule(t, "cyclomatic", &rule.CyclomaticRule{}, &lint.RuleConfig{
|
||||
Arguments: []interface{}{int64(1)},
|
||||
Arguments: []any{int64(1)},
|
||||
})
|
||||
testRule(t, "cyclomatic-2", &rule.CyclomaticRule{}, &lint.RuleConfig{
|
||||
Arguments: []interface{}{int64(3)},
|
||||
Arguments: []any{int64(3)},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user