3
0
Fork 0
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:
copilot-swe-agent[bot] 2026-02-24 04:42:49 +00:00
parent f8e97957f8
commit 3feac95119

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)
}