Skip to content

Commit 2531844

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

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
@@ -127,10 +127,7 @@ invalidBeforeL :: Lens' ValidityInterval (Maybe SlotNo)
127127
invalidBeforeL = lens g s
128128
where
129129
g :: ValidityInterval -> Maybe SlotNo
130-
g (ValidityInterval ma _) =
131-
case ma of
132-
SNothing -> Nothing
133-
SJust a -> Just a
130+
g (ValidityInterval ma _) = strictMaybeToMaybe
134131

135132
s :: ValidityInterval -> Maybe SlotNo -> ValidityInterval
136133
s (ValidityInterval _ b) a = ValidityInterval (maybe SNothing SJust a) b

0 commit comments

Comments
 (0)