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
@@ -45,7 +45,7 @@ type Component interface {
|
||||
// methods whilst also allowing method chaining to continue.
|
||||
type componenterr string
|
||||
|
||||
func errorf(format string, args ...interface{}) Component {
|
||||
func errorf(format string, args ...any) Component {
|
||||
return componenterr(fmt.Sprintf(format, args...))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user