Skip to content

Commit a01b035

Browse files
committed
Small bugfix in matchBy
1 parent cabbde0 commit a01b035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/LSMTree/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,8 +1409,8 @@ matchBy eq (x0 :| xs) =
14091409
matchOne :: a -> Int -> a -> Either Int ()
14101410
matchOne x i y =
14111411
if (x `eq` y)
1412-
then Left i
1413-
else Right ()
1412+
then Right ()
1413+
else Left i
14141414

14151415
-- | Check that all tables in the session match. If so, return the matched
14161416
-- session. If there is a mismatch, return the list indices of the mismatching

0 commit comments

Comments
 (0)