diff --git a/build/linter/unconvert/analysis.go b/build/linter/unconvert/analysis.go index 28935bf69e65e..89da08bccd4aa 100644 --- a/build/linter/unconvert/analysis.go +++ b/build/linter/unconvert/analysis.go @@ -25,10 +25,10 @@ import ( "golang.org/x/tools/go/loader" ) -type Unconvert struct{} - +// Name is the name of the analyzer. const Name = "unconvert" +// Analyzer is the analyzer struct of unconvert. var Analyzer = &analysis.Analyzer{ Name: Name, Doc: "Remove unnecessary type conversions",