1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Eliminate a redundant binding.

This commit is contained in:
Rob Rix 2016-07-27 00:14:23 -04:00
parent 00cf4bc008
commit 94a00db41a

View File

@ -101,8 +101,7 @@ decorateTerm decorator = cata $ \ c -> cofree ((decorator (extract <$> c) .: hea
-- | with respect to other IO actions.
diffFiles :: (HasField fields Category, HasField fields Cost, HasField fields Range, Eq (Record fields)) => Parser (Syntax Text) (Record fields) -> Renderer (Record fields) -> Both SourceBlob -> IO Text
diffFiles parser renderer sourceBlobs = do
let sources = source <$> sourceBlobs
terms <- traverse parser sources
terms <- traverse (parser . source) sourceBlobs
let areNullOids = runJoin $ (== nullOid) . oid <$> sourceBlobs
let textDiff = case areNullOids of