mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 17:34:21 +00:00
Activate lint gosimple.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user