Apply fixes suggested by staticcheck
This commit is contained in:
parent
82c22e3969
commit
3d7a09347d
19 changed files with 26 additions and 315 deletions
|
|
@ -148,11 +148,7 @@ func removedAnnotation(annotationName string, issueNumber int, version string) I
|
|||
func satisfyDirective(ing networking.Ingress) bool {
|
||||
for name, val := range ing.Annotations {
|
||||
if strings.HasSuffix(name, "/configuration-snippet") {
|
||||
if strings.Index(val, "satisfy") != -1 {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return strings.Contains(val, "satisfy")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue