refactor
This commit is contained in:
parent
effc9bf5dd
commit
b3712b6047
1 changed files with 1 additions and 4 deletions
|
@ -68,7 +68,7 @@ startKey o afile (si, key, ai) = case fromToOptions o of
|
||||||
ToRemote r -> checkFailedTransferDirection ai Upload $ ifM (inAnnex key)
|
ToRemote r -> checkFailedTransferDirection ai Upload $ ifM (inAnnex key)
|
||||||
( Command.Move.toStart Command.Move.RemoveNever afile key ai si =<< getParsed r
|
( Command.Move.toStart Command.Move.RemoveNever afile key ai si =<< getParsed r
|
||||||
, do
|
, do
|
||||||
(numcopies, mincopies) <- getnummincopies
|
(numcopies, mincopies) <- getAssociatedFileNumMinCopies afile
|
||||||
Command.Drop.startRemote pcc afile ai si numcopies mincopies key =<< getParsed r
|
Command.Drop.startRemote pcc afile ai si numcopies mincopies key =<< getParsed r
|
||||||
)
|
)
|
||||||
FromRemote r -> checkFailedTransferDirection ai Download $ do
|
FromRemote r -> checkFailedTransferDirection ai Download $ do
|
||||||
|
@ -86,7 +86,4 @@ startKey o afile (si, key, ai) = case fromToOptions o of
|
||||||
, stop
|
, stop
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
getnummincopies = case afile of
|
|
||||||
AssociatedFile Nothing -> (,) <$> getNumCopies <*> getMinCopies
|
|
||||||
AssociatedFile (Just af) -> getFileNumMinCopies af
|
|
||||||
pcc = Command.Drop.PreferredContentChecked False
|
pcc = Command.Drop.PreferredContentChecked False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue