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:
parent
00cf4bc008
commit
94a00db41a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user