Skip to content

Commit 45d6bbe

Browse files
committed
Use undefined instead of const Nothing
Preserve the original behaviour
1 parent 4dcc2b6 commit 45d6bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hackage-security/src/Hackage/Security/TUF/Patterns.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ _ex1 = matchDelegation del "A/x/y/z.foo"
323323
)
324324

325325
_ex2 :: Maybe String
326-
_ex2 = either (const Nothing) (`matchDelegation` "A/x/y/z.foo")
326+
_ex2 = either undefined (`matchDelegation` "A/x/y/z.foo")
327327
(parseDelegation "A/*/*/*.foo" "B/*/C/*/*.bar")
328328

329329
_ex3 :: Either String Delegation

0 commit comments

Comments
 (0)