mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-18 02:01:29 +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:
@@ -128,10 +128,9 @@ func (r *SetRunner) ExecuteCmd(w io.Writer, pkgPath string) error {
|
||||
// return err if RecurseSubPackages is false
|
||||
if !r.Set.RecurseSubPackages {
|
||||
return err
|
||||
} else {
|
||||
// print error message and continue if RecurseSubPackages is true
|
||||
fmt.Fprintf(w, "%s\n", err.Error())
|
||||
}
|
||||
// print error message and continue if RecurseSubPackages is true
|
||||
fmt.Fprintf(w, "%s\n", err.Error())
|
||||
} else {
|
||||
fmt.Fprintf(w, "set %d field(s) of setter %q to value %q\n", count, r.Set.Name, r.Set.Value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user