1
1
mirror of https://github.com/github/semantic.git synced 2025-01-08 08:30:27 +03:00

isErrorInfo/hasErrorInfo

This commit is contained in:
joshvera 2016-08-25 12:12:01 -04:00
parent f4ba3847ba
commit a701de4b58

View File

@ -190,7 +190,7 @@ isBranchInfo info = case info of
hasErrorInfo :: DiffInfo -> Bool
hasErrorInfo info = case info of
(ErrorInfo _ _) -> True
(BranchInfo branches _ _) -> any isErrorInfo branches
(BranchInfo branches _ _) -> any hasErrorInfo branches
_ -> False
-- The user-facing category name of 'a'.