aboutsummaryrefslogtreecommitdiff
path: root/Command/RmUrl.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-19 15:55:32 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-19 15:55:32 -0400
commit312d8657a68c67711491e807382a38371bfb418e (patch)
tree3da39cc605b02fc551dbcd88f66ef1994435f5de /Command/RmUrl.hs
parentfccc38249549e7471bceb4e9859e3beb2642217d (diff)
refactor
Diffstat (limited to 'Command/RmUrl.hs')
-rw-r--r--Command/RmUrl.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Command/RmUrl.hs b/Command/RmUrl.hs
index d7e99587f..2ee8f2025 100644
--- a/Command/RmUrl.hs
+++ b/Command/RmUrl.hs
@@ -31,8 +31,5 @@ start (file, url) = flip whenAnnexed file $ \_ key -> do
cleanup :: String -> Key -> CommandCleanup
cleanup url key = do
r <- Remote.claimingUrl url
- let url' = if Remote.uuid r == webUUID
- then url
- else setDownloader url OtherDownloader
- setUrlMissing (Remote.uuid r) key url'
+ setUrlMissing (Remote.uuid r) key (setDownloader' url r)
return True