Skip to content

Commit

Permalink
fix redundant pattern match warning
Browse files Browse the repository at this point in the history
  • Loading branch information
neduard committed Jun 25, 2024
1 parent cfda33f commit 4b9945d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions parser-typechecker/src/Unison/PatternMatchCoverage/Solve.hs
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,7 @@ addConstraint con0 nc = do
C.PosLit var pmlit ->
let updateLiteral pos neg lit
| Just lit1 <- pos,
lit1 == lit = case lit1 == lit of
-- we already have this positive constraint
True -> (pure (), Ignore)
-- contradicts positive info
False -> (contradiction, Ignore)
lit1 == lit = (pure (), Ignore) -- we already have this positive constraint
-- the constraint contradicts negative info
| Set.member lit neg = (contradiction, Ignore)
| otherwise = (pure (), Update (Just lit, neg))
Expand Down

0 comments on commit 4b9945d

Please sign in to comment.