Update cmd/helm/profiling.go

Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
pull/13481/head
Evans Mungai 7 months ago committed by GitHub
parent 165654426d
commit fdf4484971
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -83,8 +83,8 @@ func stopProfiling() error {
} }
} }
if len(errs) > 0 { if err := errors.Join(errs...); err != nil {
return fmt.Errorf("errors while stopping profiling: [%s]", strings.Join(errs, ", ")) return fmt.Errorf("error(s) while stopping profiling: %w", err)
} }
return nil return nil

Loading…
Cancel
Save