mirror of
https://github.com/github/semantic.git
synced 2024-12-11 08:45:48 +03:00
🔥 redundant parens.
This commit is contained in:
parent
fe1de046b0
commit
a0fbf8433e
@ -101,7 +101,7 @@ dedupe = map (entry &&& decl) . sortOn index . Map.elems . foldl' go Map.empty .
|
||||
go m d@(Dedupe _ _ decl) = case findSimilar decl m of
|
||||
Just similar
|
||||
| similar == decl -> m
|
||||
| otherwise -> Map.insert (dedupeKey similar) (d { entry = Replaced, decl = similar }) m
|
||||
| otherwise -> Map.insert (dedupeKey similar) d { entry = Replaced, decl = similar } m
|
||||
_ -> Map.insert (dedupeKey decl) d m
|
||||
|
||||
findSimilar d = fmap decl . Map.lookup (dedupeKey d)
|
||||
|
Loading…
Reference in New Issue
Block a user