refactor
This commit is contained in:
parent
68edd308af
commit
1f3358512a
3 changed files with 10 additions and 8 deletions
|
@ -55,8 +55,5 @@ perform key url = do
|
|||
perform' :: Key -> URLString -> Annex Bool
|
||||
perform' key url = do
|
||||
r <- Remote.claimingUrl url
|
||||
let url' = if Remote.uuid r == webUUID
|
||||
then url
|
||||
else setDownloader url OtherDownloader
|
||||
setUrlPresent (Remote.uuid r) key url'
|
||||
setUrlPresent (Remote.uuid r) key (setDownloader' url r)
|
||||
return True
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue