1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Fix the order of the then else conditions

This commit is contained in:
Rick Winfrey 2016-10-11 17:06:51 -05:00 committed by joshvera
parent 50660f35a3
commit 0e6cb47e1b

View File

@ -112,8 +112,8 @@ fetchDiff' Arguments{..} filepath = do
where
diffArguments = R.DiffArguments { format = format, output = output }
fetchText textDiff = if developmentMode
then liftIO $ Timeout.timeout timeoutInMicroseconds textDiff
else liftIO $ Just <$> textDiff
then liftIO $ Just <$> textDiff
else liftIO $ Timeout.timeout timeoutInMicroseconds textDiff
pathsToDiff :: Arguments -> Both String -> IO [FilePath]