This commit is contained in:
Joey Hess 2020-05-14 14:19:28 -04:00
parent 4be94c67c7
commit dc7dc1e179
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 24 additions and 31 deletions

View file

@ -131,11 +131,7 @@ performRemote key afile numcopies remote = do
, "proof:"
, show proof
]
ok <- tryNonAsync (Remote.removeKey remote key) >>= \case
Right () -> return True
Left e -> do
warning (show e)
return False
ok <- Remote.action (Remote.removeKey remote key)
next $ cleanupRemote key remote ok
, stop
)