mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
code cleanup: replace interface{} with any (#906)
This commit is contained in:
committed by
GitHub
parent
5ccebe86c2
commit
36c2ee2718
@@ -158,7 +158,7 @@ func isExprABooleanLit(n ast.Node) (lexeme string, ok bool) {
|
||||
}
|
||||
|
||||
// gofmt returns a string representation of an AST subtree.
|
||||
func gofmt(x interface{}) string {
|
||||
func gofmt(x any) string {
|
||||
buf := bytes.Buffer{}
|
||||
fs := token.NewFileSet()
|
||||
printer.Fprint(&buf, fs, x)
|
||||
|
||||
Reference in New Issue
Block a user