summaryrefslogtreecommitdiff
path: root/Logs/Transfer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Logs/Transfer.hs')
-rw-r--r--Logs/Transfer.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Logs/Transfer.hs b/Logs/Transfer.hs
index a58944a83..a641c4882 100644
--- a/Logs/Transfer.hs
+++ b/Logs/Transfer.hs
@@ -134,9 +134,8 @@ checkTransfer t = do
liftIO $ closeFd fd
case locked of
Nothing -> return Nothing
- Just (pid, _) -> liftIO $
- flip catchDefaultIO Nothing $
- readTransferInfoFile (Just pid) tfile
+ Just (pid, _) -> liftIO $ catchDefaultIO Nothing $
+ readTransferInfoFile (Just pid) tfile
{- Gets all currently running transfers. -}
getTransfers :: Annex [(Transfer, TransferInfo)]