diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2025-12-19 12:52:30 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-12-22 02:13:00 +0000 |
| commit | a83befa0d111a0ba6fac52d763e93c76a2ef94d4 (patch) | |
| tree | 7d3c28b24229429936a631e8ceb24135856b257d /tools/syz-linter | |
| parent | 8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff) | |
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'tools/syz-linter')
| -rw-r--r-- | tools/syz-linter/linter.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syz-linter/linter.go b/tools/syz-linter/linter.go index d29e256a3..5b3d2210d 100644 --- a/tools/syz-linter/linter.go +++ b/tools/syz-linter/linter.go @@ -54,7 +54,7 @@ var SyzAnalyzer = &analysis.Analyzer{ Run: run, } -func run(p *analysis.Pass) (interface{}, error) { +func run(p *analysis.Pass) (any, error) { pass := (*Pass)(p) for _, file := range pass.Files { stmts := make(map[int]bool) @@ -91,7 +91,7 @@ func run(p *analysis.Pass) (interface{}, error) { type Pass analysis.Pass -func (pass *Pass) report(pos ast.Node, msg string, args ...interface{}) { +func (pass *Pass) report(pos ast.Node, msg string, args ...any) { pass.Report(analysis.Diagnostic{ Pos: pos.Pos(), Message: fmt.Sprintf(msg, args...), |
