chore: remove redundant if-else in isDefEqQuickOther (#4388)
I removed a redundant `if tFn.isMVar || sFn.isMVar then ... else return LBool.undef` in the `else` clause of ``` if !tFn.isMVar && !sFn.isMVar then return LBool.undef else ```
This commit is contained in:
parent
c87205bc9b
commit
74f1373706
1 changed files with 5 additions and 8 deletions
|
|
@ -1775,15 +1775,12 @@ private partial def isDefEqQuickOther (t s : Expr) : MetaM LBool := do
|
|||
| LBool.true => return LBool.true
|
||||
| LBool.false => return LBool.false
|
||||
| _ =>
|
||||
if tFn.isMVar || sFn.isMVar then
|
||||
let ctx ← read
|
||||
if ctx.config.isDefEqStuckEx then do
|
||||
trace[Meta.isDefEq.stuck] "{t} =?= {s}"
|
||||
Meta.throwIsDefEqStuck
|
||||
else
|
||||
return LBool.false
|
||||
let ctx ← read
|
||||
if ctx.config.isDefEqStuckEx then do
|
||||
trace[Meta.isDefEq.stuck] "{t} =?= {s}"
|
||||
Meta.throwIsDefEqStuck
|
||||
else
|
||||
return LBool.undef
|
||||
return LBool.false
|
||||
else
|
||||
isDefEqQuickMVarMVar t s
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue