Skip to content

Commit

Permalink
fix SA4005: ineffective assignment to field PatchMeta.patchStrategies…
Browse files Browse the repository at this point in the history
… (staticcheck)

Kubernetes-commit: fa3c4b953fb8192c60dcc3874bff8f9c12ffd54d
  • Loading branch information
Antonio Ojea authored and k8s-publishing-bot committed Nov 16, 2021
1 parent 9d6998d commit 15e61a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/util/strategicpatch/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ type PatchMeta struct {
patchMergeKey string
}

func (pm PatchMeta) GetPatchStrategies() []string {
func (pm *PatchMeta) GetPatchStrategies() []string {
if pm.patchStrategies == nil {
return []string{}
}
return pm.patchStrategies
}

func (pm PatchMeta) SetPatchStrategies(ps []string) {
func (pm *PatchMeta) SetPatchStrategies(ps []string) {
pm.patchStrategies = ps
}

func (pm PatchMeta) GetPatchMergeKey() string {
func (pm *PatchMeta) GetPatchMergeKey() string {
return pm.patchMergeKey
}

func (pm PatchMeta) SetPatchMergeKey(pmk string) {
func (pm *PatchMeta) SetPatchMergeKey(pmk string) {
pm.patchMergeKey = pmk
}

Expand Down

0 comments on commit 15e61a1

Please sign in to comment.