mirror of
https://github.com/Z3Prover/z3
synced 2026-02-26 10:05:38 +00:00
Simplify boolean return in goOnBindingCb
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
f8e97957f8
commit
3feac95119
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue