summaryrefslogtreecommitdiff
path: root/Command/Drop.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Drop.hs')
-rw-r--r--Command/Drop.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Command/Drop.hs b/Command/Drop.hs
index 5699175ed..1d09ca3fd 100644
--- a/Command/Drop.hs
+++ b/Command/Drop.hs
@@ -89,10 +89,8 @@ cleanupLocal key = do
cleanupRemote :: Key -> Remote -> Bool -> CommandCleanup
cleanupRemote key remote ok = do
- -- better safe than sorry: assume the remote dropped the key
- -- even if it seemed to fail; the failure could have occurred
- -- after it really dropped it
- Remote.logStatus remote key InfoMissing
+ when ok $
+ Remote.logStatus remote key InfoMissing
return ok
{- Checks specified remotes to verify that enough copies of a key exist to