Activate lint gosimple.

This commit is contained in:
jregan
2019-11-14 20:56:39 -08:00
parent 85d34531a2
commit 3da0afdda0
11 changed files with 94 additions and 63 deletions

View File

@@ -39,7 +39,7 @@ func (g *GenArgs) String() string {
// 1) GenArgs is not nil
// 2) DisableNameSuffixHash in GeneratorOptions is not set to true
func (g *GenArgs) NeedsHashSuffix() bool {
return g.args != nil && (g.opts == nil || g.opts.DisableNameSuffixHash == false)
return g.args != nil && (g.opts == nil || !g.opts.DisableNameSuffixHash)
}
// Behavior returns Behavior field of GeneratorArgs

View File

@@ -133,9 +133,7 @@ func (k *Kustomization) FixKustomizationPostUnmarshalling() {
if k.Kind == "" {
k.Kind = KustomizationKind
}
for _, b := range k.Bases {
k.Resources = append(k.Resources, b)
}
k.Resources = append(k.Resources, k.Bases...)
k.Bases = nil
}