Remove redundant endOfInput

parseLogLines consumes till endOfInput
This commit is contained in:
Joey Hess 2019-01-10 12:42:59 -04:00
parent 6f66b53a30
commit 7e54c215b4
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -32,7 +32,7 @@ data LogStatus = InfoPresent | InfoMissing | InfoDead
deriving (Eq, Show, Bounded, Enum)
parseLog :: L.ByteString -> [LogLine]
parseLog = fromMaybe [] . A.maybeResult . A.parse (logParser <* A.endOfInput)
parseLog = fromMaybe [] . A.maybeResult . A.parse logParser
logParser :: A.Parser [LogLine]
logParser = parseLogLines $ LogLine