add Go lint

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-07-16 20:21:11 +08:00
parent cc13492623
commit ac23def893
60 changed files with 576 additions and 194 deletions
+1 -2
View File
@@ -119,7 +119,6 @@ func setRootCommandFlags(cliApp *cli.App) {
Usage: "Request confirmation before attempting to modify clusters",
},
}
}
func toCliError(c *cli.Context, err error) error {
@@ -153,7 +152,7 @@ func configureLogging(c *cli.Context) error {
}
logger = helmexec.NewLogger(os.Stderr, logLevel)
if c.App.Metadata == nil {
// Auto-initialised in 1.19.0
// Auto-initialized in 1.19.0
// https://github.com/urfave/cli/blob/master/CHANGELOG.md#1190---2016-11-19
c.App.Metadata = make(map[string]interface{})
}