refactor
This commit is contained in:
parent
4be94c67c7
commit
dc7dc1e179
5 changed files with 24 additions and 31 deletions
|
@ -190,11 +190,7 @@ downloadRemoteFile addunlockedmatcher r o uri file sz = checkCanAdd file $ do
|
|||
-- should use to download it.
|
||||
setTempUrl urlkey loguri
|
||||
let downloader = \dest p ->
|
||||
tryNonAsync (Remote.retrieveKeyFile r urlkey af dest p) >>= \case
|
||||
Right _ -> return True
|
||||
Left e -> do
|
||||
warning (show e)
|
||||
return False
|
||||
fst <$> Remote.verifiedAction (Remote.retrieveKeyFile r urlkey af dest p)
|
||||
ret <- downloadWith addunlockedmatcher downloader urlkey (Remote.uuid r) loguri file
|
||||
removeTempUrl urlkey
|
||||
return ret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue