summaryrefslogtreecommitdiff
path: root/Command/Fsck.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r--Command/Fsck.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs
index a27588482..aeed58cd1 100644
--- a/Command/Fsck.hs
+++ b/Command/Fsck.hs
@@ -401,10 +401,8 @@ badContentDirect file key = do
badContentRemote :: Remote -> Key -> Annex String
badContentRemote remote key = do
ok <- Remote.removeKey remote key
- -- 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 $ (if ok then "dropped from " else "failed to drop from ")
++ Remote.name remote