mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Reuse toMap.
This commit is contained in:
parent
39a643c149
commit
5e3fd0e6d1
@ -27,7 +27,7 @@ legacyDiffSummary = distributeFoldMap go
|
||||
where
|
||||
go blobPair = decoratingDiffWith summarizeDiffParsers decorateTerm (pure . uncurry (flip Summaries) . bimap toMap toMap . partitionEithers . summarizeDiff) blobPair
|
||||
`catchError` \(SomeException e) ->
|
||||
pure $ Summaries mempty (Map.singleton path [toJSON (ErrorSummary (T.pack (show e)) lowerBound lang)])
|
||||
pure $ Summaries mempty (toMap [ErrorSummary (T.pack (show e)) lowerBound lang])
|
||||
where path = T.pack $ pathKeyForBlobPair blobPair
|
||||
lang = languageForBlobPair blobPair
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user