summaryrefslogtreecommitdiff
path: root/Command/Drop.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Drop.hs')
-rw-r--r--Command/Drop.hs8
1 files changed, 3 insertions, 5 deletions
diff --git a/Command/Drop.hs b/Command/Drop.hs
index 4a7596921..7210184f8 100644
--- a/Command/Drop.hs
+++ b/Command/Drop.hs
@@ -7,14 +7,12 @@
module Command.Drop where
+import AnnexCommon
import Command
import qualified Remote
import qualified Annex
import LocationLog
-import Types
import Content
-import Messages
-import Utility.Conditional
import Trust
import Config
@@ -71,9 +69,9 @@ dropKey key numcopiesM = do
| length have >= need = return True
| otherwise = do
let u = Remote.uuid r
- let dup = u `elem` have
+ let duplicate = u `elem` have
haskey <- Remote.hasKey r key
- case (dup, haskey) of
+ case (duplicate, haskey) of
(False, Right True) -> findcopies need (u:have) rs bad
(False, Left _) -> findcopies need have rs (r:bad)
_ -> findcopies need have rs bad