summaryrefslogtreecommitdiff
path: root/Annex/Transfer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/Transfer.hs')
-rw-r--r--Annex/Transfer.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Annex/Transfer.hs b/Annex/Transfer.hs
index fb89869f8..1603974ff 100644
--- a/Annex/Transfer.hs
+++ b/Annex/Transfer.hs
@@ -132,8 +132,7 @@ runTransfer' ignorelock t file shouldretry a = do
liftIO $ readMVar metervar
| otherwise = do
f <- fromRepo $ gitAnnexTmpObjectLocation (transferKey t)
- liftIO $ catchDefaultIO 0 $
- fromIntegral . fileSize <$> getFileStatus f
+ liftIO $ catchDefaultIO 0 $ getFileSize f
type RetryDecider = TransferInfo -> TransferInfo -> Bool