small git-annex get speedup
Remove an redundant inAnnex check. The checkContentPresent handles that, and after the last commit also does in batch mode.
This commit is contained in:
parent
1be92381ec
commit
4685612f43
3 changed files with 5 additions and 6 deletions
|
@ -75,7 +75,10 @@ startKey o afile (key, ai) = case fromToOptions o of
|
|||
haskey <- flip Remote.hasKey key =<< getParsed r
|
||||
case haskey of
|
||||
Left _ -> stop
|
||||
Right True -> Command.Get.start' (return True) Nothing key afile ai
|
||||
Right True -> ifM (inAnnex key)
|
||||
( stop
|
||||
, Command.Get.start' (return True) Nothing key afile ai
|
||||
)
|
||||
Right False -> ifM (inAnnex key)
|
||||
( do
|
||||
numcopies <- getnumcopies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue