Skip to content

Commit

Permalink
Fix format string issue (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones authored Nov 18, 2024
1 parent 7184cb0 commit 24ec244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policy/composer.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (opt *ruleComposerImpl) Optimize(ctx *cel.OptimizerContext, a *ast.AST) *as
varExprs[i] = vi.expr
err := ctx.ExtendEnv(cel.Variable(vi.indexVar, vi.cv.Declaration().Type()))
if err != nil {
ctx.ReportErrorAtID(ruleExpr.ID(), err.Error())
ctx.ReportErrorAtID(ruleExpr.ID(), "%s", err.Error())
}
}
blockExpr := ctx.NewCall("cel.@block", ctx.NewList(varExprs, []int32{}), ruleExpr)
Expand Down

0 comments on commit 24ec244

Please sign in to comment.