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:
parent
59997566bb
commit
b24d12d869
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user