Skip to content

Commit c9a9cbf

Browse files
Soupstrawteodanciu
andcommitted
Update eras/allegra/impl/src/Cardano/Ledger/Allegra/Scripts.hs
Co-authored-by: teodanciu <teodora.danciu@tweag.io>
1 parent 14529ee commit c9a9cbf

File tree

1 file changed

+1
-4
lines changed
  • eras/allegra/impl/src/Cardano/Ledger/Allegra

1 file changed

+1
-4
lines changed

eras/allegra/impl/src/Cardano/Ledger/Allegra/Scripts.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,7 @@ invalidHereAfterL :: Lens' ValidityInterval (Maybe SlotNo)
140140
invalidHereAfterL = lens g s
141141
where
142142
g :: ValidityInterval -> Maybe SlotNo
143-
g (ValidityInterval _ mb) =
144-
case mb of
145-
SNothing -> Nothing
146-
SJust b -> Just b
143+
g (ValidityInterval _ mb) = strictMaybeToMaybe
147144

148145
s :: ValidityInterval -> Maybe SlotNo -> ValidityInterval
149146
s (ValidityInterval ma _) = ValidityInterval ma . maybe SNothing SJust

0 commit comments

Comments
 (0)