Skip to content

Commit

Permalink
Making variable names more generic for HasTopLevelLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
aamgayle committed Oct 24, 2023
1 parent c3b2dbf commit 27b9a29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/manifests/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ func GetTopLevelLabels() map[string]string { // this is a function to avoid any
}

// Checks the first set of labels has the labels of the other passed in sets
func HasTopLevelLabels(spcLabels map[string]string) bool {
if len(spcLabels) == 0 {
func HasTopLevelLabels(objLabels map[string]string) bool {
if len(objLabels) == 0 {
return false
}

for label, val := range GetTopLevelLabels() {
spcVal, ok := spcLabels[label]
spcVal, ok := objLabels[label]
if !ok {
return false
}
Expand Down

0 comments on commit 27b9a29

Please sign in to comment.