1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +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. -- | 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 :: (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 diffFiles parser renderer sourceBlobs = do
let sources = source <$> sourceBlobs terms <- traverse (parser . source) sourceBlobs
terms <- traverse parser sources
let areNullOids = runJoin $ (== nullOid) . oid <$> sourceBlobs let areNullOids = runJoin $ (== nullOid) . oid <$> sourceBlobs
let textDiff = case areNullOids of let textDiff = case areNullOids of