diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-23 13:39:04 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-23 13:39:04 -0400 |
commit | 7ee636f6ddca4b872dde36383077875563b0b369 (patch) | |
tree | dafedf4b87647a3c6106d4deeae8888611db2511 /Command/Move.hs | |
parent | aec4709c3f96fa17fef2fde812ed75167ddfbc60 (diff) |
avoid unnecessary read of trust.log
Diffstat (limited to 'Command/Move.hs')
-rw-r--r-- | Command/Move.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Move.hs b/Command/Move.hs index 7fa195bab..03b605ce5 100644 --- a/Command/Move.hs +++ b/Command/Move.hs @@ -89,7 +89,7 @@ toPerform dest move key = do let fastcheck = fast && not move && not (Remote.hasKeyCheap dest) isthere <- if fastcheck then do - (remotes, _) <- Remote.keyPossibilities key + remotes <- Remote.keyPossibilities key return $ Right $ dest `elem` remotes else Remote.hasKey dest key case isthere of @@ -123,7 +123,7 @@ fromStart :: Remote.Remote Annex -> Bool -> CommandStartString fromStart src move file = isAnnexed file $ \(key, _) -> do g <- Annex.gitRepo u <- getUUID g - (remotes, _) <- Remote.keyPossibilities key + remotes <- Remote.keyPossibilities key if (u == Remote.uuid src) || (null $ filter (== src) remotes) then stop else do |