summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/AddUrl.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs
index e32ceb568..9b6ac28ea 100644
--- a/Command/AddUrl.hs
+++ b/Command/AddUrl.hs
@@ -341,7 +341,7 @@ cleanup u url file key mtmp = case mtmp of
Nothing -> go
Just tmp -> do
largematcher <- largeFilesMatcher
- ifM (checkFileMatcher largematcher file)
+ ifM (checkFileMatcher largematcher tmp)
( go
, do
liftIO $ renameFile tmp file