1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00

Add missing cases to toSeries and toText

This commit is contained in:
joshvera 2016-08-16 22:03:48 -04:00
parent 59997566bb
commit b24d12d869

View File

@ -24,10 +24,12 @@ concatOutputs l = T.intercalate "\n" (toText <$> l)
toSeries :: Output -> Series
toSeries (JSONOutput series) = series
toSeries (SummaryOutput series) = series
toSeries _ = mempty
toText :: Output -> Text
toText (SplitOutput text) = text
toText (PatchOutput text) = text
toText _ = mempty
-- | The available types of diff rendering.