summaryrefslogtreecommitdiff
path: root/Command/Whereis.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-06 17:19:29 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-06 17:45:47 -0400
commit3623d831d193d029a35aac81571d67768b176534 (patch)
tree23cf930ca5069a7e985ef4f8cc044aec7e9610ee /Command/Whereis.hs
parent6f98fd53914b2490e866a2613e86b93f689034bf (diff)
refactor
Diffstat (limited to 'Command/Whereis.hs')
-rw-r--r--Command/Whereis.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Command/Whereis.hs b/Command/Whereis.hs
index d5c090e49..850975048 100644
--- a/Command/Whereis.hs
+++ b/Command/Whereis.hs
@@ -8,7 +8,6 @@
module Command.Whereis where
import Control.Monad
-import Data.List
import LocationLog
import Command
@@ -32,9 +31,7 @@ start file = isAnnexed file $ \(key, _) -> do
perform :: Key -> CommandPerform
perform key = do
locations <- keyLocations key
- untrusted <- trustGet UnTrusted
- let untrustedlocations = intersect untrusted locations
- let safelocations = filter (`notElem` untrusted) locations
+ (untrustedlocations, safelocations) <- trustPartition UnTrusted locations
let num = length safelocations
showNote $ show num ++ " " ++ copiesplural num
pp <- prettyPrintUUIDs "whereis" safelocations