1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00

🔥 redundant parens.

This commit is contained in:
Rob Rix 2019-10-16 18:35:36 -04:00
parent fe1de046b0
commit a0fbf8433e
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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)