Skip to content

Commit

Permalink
Use any instead of interface{}
Browse files Browse the repository at this point in the history
  • Loading branch information
abicky committed Aug 11, 2024
1 parent 35d57e5 commit 947157b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (e *runtimeError) Error() string {
return fmt.Sprintf("%+v", e.err)
}

func newRuntimeError(format string, a ...interface{}) error {
func newRuntimeError(format string, a ...any) error {
return &runtimeError{
err: xerrors.Errorf(format, a...),
}
Expand Down

0 comments on commit 947157b

Please sign in to comment.