Fix linter warning

Signed-off-by: Evans Mungai <mbuevans@gmail.com>
pull/30552/head
Evans Mungai 10 months ago committed by Scott Rigby
parent 4c50f01046
commit b39411a668
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -95,12 +95,12 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string
Short: "The Helm package manager for Kubernetes.",
Long: globalUsage,
SilenceUsage: true,
PersistentPreRun: func(cmd *cobra.Command, _ []string) {
PersistentPreRun: func(_ *cobra.Command, _ []string) {
if err := startProfiling(); err != nil {
log.Printf("Warning: Failed to start profiling: %v", err)
}
},
PersistentPostRun: func(cmd *cobra.Command, _ []string) {
PersistentPostRun: func(_ *cobra.Command, _ []string) {
if err := stopProfiling(); err != nil {
log.Printf("Warning: Failed to stop profiling: %v", err)
}

Loading…
Cancel
Save