Skip to content

Commit

Permalink
internal/core/adt: use state directly
Browse files Browse the repository at this point in the history
This makes it compativle with v0.7.

Signed-off-by: Marcel van Lohuizen <[email protected]>
Change-Id: I86b2b420bb7ee9af7b46cad10c39e83efac9baad
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1172011
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
  • Loading branch information
mpvl committed Nov 29, 2023
1 parent 596fdc9 commit bba2263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/adt/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ func isFinalError(n *Vertex) bool {
// change after the fact.
// expectError indicates whether the value should evaluate to an error or not.
func (c *OpContext) verifyNonMonotonicResult(env *Environment, x Expr, expectError bool) {
if n := env.Vertex.getNodeContext(c, 0); n != nil {
if n := env.Vertex.state; n != nil {
n.postChecks = append(n.postChecks, envCheck{
env: env,
expr: x,
Expand Down

0 comments on commit bba2263

Please sign in to comment.