mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Fix golint warning
golint warning: if block ends with a return statement, so drop this else and outdent its block Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
This commit is contained in:
@@ -155,10 +155,9 @@ func (r *GrepRunner) ExecuteCmd(w io.Writer, pkgPath string) error {
|
||||
// return err if there is only package
|
||||
if !r.RecurseSubPackages {
|
||||
return err
|
||||
} else {
|
||||
// print error message and continue if there are multiple packages to annotate
|
||||
fmt.Fprintf(w, "%s\n", err.Error())
|
||||
}
|
||||
// print error message and continue if there are multiple packages to annotate
|
||||
fmt.Fprintf(w, "%s\n", err.Error())
|
||||
}
|
||||
fmt.Fprint(w, out.String())
|
||||
if out.String() != "" {
|
||||
|
||||
Reference in New Issue
Block a user