Skip to content

Commit f66119e

Browse files
Move if-then-else to a binding for better rendering
1 parent b989b19 commit f66119e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Ledger/Conway/Specification/Certs.lagda.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,16 +487,19 @@ isPoolRegistered ps kh = lookupᵐ? ps kh
487487
data _⊢_⇀⦇_,POOL⦈_ : PoolEnv → PState → DCert → PState → Type where
488488
489489
POOL-regpool :
490+
let
491+
fPool' =
492+
if isPoolRegistered pools kh
493+
then ❴ kh , poolParams ❵ ∪ˡ fPools
494+
else fPools
495+
in
490496
────────────────────────────────
491497
pp ⊢ ⟦ pools
492498
, fPools
493499
, retiring
494500
⟧ ⇀⦇ regpool kh poolParams ,POOL⦈ ⟦
495501
pools ∪ˡ ❴ kh , poolParams ❵
496-
, (if isPoolRegistered pools kh
497-
then ❴ kh , poolParams ❵ ∪ˡ fPools
498-
else fPools
499-
)
502+
, fPool'
500503
, retiring ∣ ❴ kh ❵ ᶜ
501504
502505

0 commit comments

Comments
 (0)