summaryrefslogtreecommitdiff
path: root/Command/Drop.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Drop.hs')
-rw-r--r--Command/Drop.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Command/Drop.hs b/Command/Drop.hs
index 05c956fdd..07cec1a67 100644
--- a/Command/Drop.hs
+++ b/Command/Drop.hs
@@ -7,8 +7,6 @@
module Command.Drop where
-import Control.Monad (when)
-
import Command
import qualified Backend
import LocationLog
@@ -46,7 +44,6 @@ perform key backend numcopies = do
cleanup :: Key -> CommandCleanup
cleanup key = do
- inannex <- inAnnex key
- when inannex $ removeAnnex key
+ whenM (inAnnex key) $ removeAnnex key
logStatus key ValueMissing
return True