copy, drop: Avoid checking numcopies attribute unnecessarily
This commit is contained in:
parent
619297e1a7
commit
aa558f0b00
4 changed files with 16 additions and 5 deletions
|
@ -24,7 +24,7 @@ seek = [withField Command.Move.fromOption Remote.byName $ \from ->
|
|||
|
||||
start :: Maybe Remote -> FilePath -> (Key, Backend) -> CommandStart
|
||||
start from file (key, _) = stopUnless (not <$> inAnnex key) $
|
||||
autoCopies file key (<) $ \_numcopies ->
|
||||
autoCopies file key (<) $
|
||||
case from of
|
||||
Nothing -> go $ perform key file
|
||||
Just src ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue