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 17:45:17 -04:00
parent 483e6b2f2c
commit 6f7683c9a7
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -125,7 +125,7 @@ entryChange entry = case entry of
-- | Construct a 'TOCSummary' from a node annotation and a change type label.
recordSummary :: T.Text -> Declaration -> TOCSummary
recordSummary changeText record = case record of
(ErrorDeclaration text _ srcSpan language) -> ErrorSummary text srcSpan language
ErrorDeclaration text _ srcSpan language -> ErrorSummary text srcSpan language
decl-> TOCSummary (toCategoryName decl) (formatIdentifier decl) (declarationSpan decl) changeText
where
formatIdentifier (MethodDeclaration identifier _ _ Language.Go (Just receiver)) = "(" <> receiver <> ") " <> identifier