Skip to content

Commit

Permalink
simplified bool comparison
Browse files Browse the repository at this point in the history
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
  • Loading branch information
NoSkillGirl committed Apr 23, 2021
1 parent 8f9c974 commit 7a6648c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kyverno/validate/command.go
Expand Up @@ -196,7 +196,7 @@ func validatePolicies(policies []*v1.ClusterPolicy, v1crd apiextensions.CustomRe
}
}

if invalidPolicyFound == true {
if invalidPolicyFound {
os.Exit(1)
}
return nil
Expand Down

0 comments on commit 7a6648c

Please sign in to comment.