Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kchiranjewee63 committed Aug 6, 2024
1 parent eb4ccd6 commit d0de25d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/verificationrules/v1alpha1/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func (vri *VerificationRulesImp) indexTraTsVerificationRules() {
if indexedRules[rule.Method][rule.Endpoint] == nil {
indexedRules[rule.Method][rule.Endpoint] = &EndpointRule{Skip: false}
}

indexedRules[rule.Method][rule.Endpoint].Rules = append(
indexedRules[rule.Method][rule.Endpoint].Rules, rule)
}
Expand All @@ -183,6 +184,7 @@ func (vri *VerificationRulesImp) indexTraTsVerificationRules() {
if indexedRules[endpoint.Method][endpoint.Path] == nil {
indexedRules[endpoint.Method][endpoint.Path] = &EndpointRule{}
}

indexedRules[endpoint.Method][endpoint.Path].Skip = true
indexedRules[endpoint.Method][endpoint.Path].Rules = nil // Clear any existing rules
}
Expand Down

0 comments on commit d0de25d

Please sign in to comment.