Skip to content

Commit

Permalink
trivial. fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Mar 18, 2024
1 parent 5beafef commit 81c85f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/policy-template/policy-template-rego.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func processRule(rule *ast.Rule, paramRefs map[string]string, passedParams []str
updateLocalAssignMap(expr, localAssignMap)

if expr.IsCall() {
call := expr.Terms.([]*ast.Term)
call, _ := expr.Terms.([]*ast.Term)
if len(call) > 2 {
ruleName := call[0].String()

Expand Down Expand Up @@ -313,7 +313,7 @@ func findKey(defs []*domain.ParameterDef, key string) *domain.ParameterDef {
}

func createKey(key string, isLast bool) *domain.ParameterDef {
finalType := "any"
var finalType string

pKey := key
isArray := false
Expand Down

0 comments on commit 81c85f0

Please sign in to comment.