update dependencies (#6267)
Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
6
vendor/github.com/open-policy-agent/opa/topdown/copypropagation/copypropagation.go
generated
vendored
6
vendor/github.com/open-policy-agent/opa/topdown/copypropagation/copypropagation.go
generated
vendored
@@ -222,11 +222,11 @@ func (p *CopyPropagator) plugBindings(pctx *plugContext, expr *ast.Expr) *ast.Ex
|
||||
// errors unreachable.
|
||||
x, err := ast.Transform(xform, expr.Copy())
|
||||
|
||||
if expr, ok := x.(*ast.Expr); !ok || err != nil {
|
||||
expr, ok := x.(*ast.Expr)
|
||||
if !ok || err != nil {
|
||||
panic("unreachable")
|
||||
} else {
|
||||
return expr
|
||||
}
|
||||
return expr
|
||||
}
|
||||
|
||||
type bindingPlugTransform struct {
|
||||
|
||||
Reference in New Issue
Block a user