Skip to content

Commit

Permalink
Merge pull request #6 from yutachaos/feature/fixed_govet
Browse files Browse the repository at this point in the history
Fixed go vet errors
  • Loading branch information
sarabala1979 committed Oct 21, 2019
2 parents 3b24127 + eb2e438 commit 87513f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notification/controller/ruleValidationEngine.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func ValidateCondition(condition *v1alpha1.Condition, node *jsonquery.Node) bool
if condition == nil {
return false
}
log.Debugf("Validating condition %v on node %s", condition, node)
log.Debugf("Validating condition %v on node %v", condition, node)

validateNode := jsonquery.Find(node, condition.Jsonpath)
if len(validateNode) == 0 {
Expand Down Expand Up @@ -77,7 +77,7 @@ func ValidateRule(rule *v1alpha1.Rule, node *jsonquery.Node) bool {
if rule == nil {
return false
}
log.Debugf("Validating rule %s on node %s", rule.Name, node)
log.Debugf("Validating rule %s on node %v", rule.Name, node)
status := false
if len(rule.AllConditions) > 0 {
log.Debug("Checking all conditions")
Expand Down

0 comments on commit 87513f3

Please sign in to comment.