3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-27 02:25:38 +00:00

Merge pull request #8746 from Z3Prover/copilot/simplify-go-return-logic

Simplify boolean return in goOnBindingCb
This commit is contained in:
Nikolaj Bjorner 2026-02-24 08:44:24 -08:00 committed by GitHub
commit e0161b2e2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,10 +134,7 @@ func goOnBindingCb(ctx C.uintptr_t, cb C.Z3_solver_callback, q C.Z3_ast, inst C.
old := p.cb
p.cb = cb
defer func() { p.cb = old }()
if h.OnBinding(newExpr(p.ctx, q), newExpr(p.ctx, inst)) {
return C.bool(true)
}
return C.bool(false)
return C.bool(h.OnBinding(newExpr(p.ctx, q), newExpr(p.ctx, inst)))
}
return C.bool(true)
}