better function name
This commit is contained in:
parent
6d215400ef
commit
2f50af5273
2 changed files with 5 additions and 5 deletions
|
@ -27,11 +27,11 @@ handleDrops fromhere key f knownpresentremote = do
|
||||||
syncrs <- syncDataRemotes <$> getDaemonStatus
|
syncrs <- syncDataRemotes <$> getDaemonStatus
|
||||||
liftAnnex $ do
|
liftAnnex $ do
|
||||||
locs <- loggedLocations key
|
locs <- loggedLocations key
|
||||||
handleDrops' locs syncrs fromhere key f knownpresentremote
|
handleDropsFrom locs syncrs fromhere key f knownpresentremote
|
||||||
|
|
||||||
handleDrops' :: [UUID] -> [Remote] -> Bool -> Key -> AssociatedFile -> Maybe Remote -> Annex ()
|
handleDropsFrom :: [UUID] -> [Remote] -> Bool -> Key -> AssociatedFile -> Maybe Remote -> Annex ()
|
||||||
handleDrops' _ _ _ _ Nothing _ = noop
|
handleDropsFrom _ _ _ _ Nothing _ = noop
|
||||||
handleDrops' locs rs fromhere key (Just f) knownpresentremote
|
handleDropsFrom locs rs fromhere key (Just f) knownpresentremote
|
||||||
| fromhere = do
|
| fromhere = do
|
||||||
n <- getcopies
|
n <- getcopies
|
||||||
if checkcopies n
|
if checkcopies n
|
||||||
|
|
|
@ -119,7 +119,7 @@ expensiveScan rs = unless onlyweb $ do
|
||||||
locs <- loggedLocations key
|
locs <- loggedLocations key
|
||||||
present <- inAnnex key
|
present <- inAnnex key
|
||||||
|
|
||||||
handleDrops' locs syncrs present key (Just f) Nothing
|
handleDropsFrom locs syncrs present key (Just f) Nothing
|
||||||
|
|
||||||
let slocs = S.fromList locs
|
let slocs = S.fromList locs
|
||||||
let use a = return $ catMaybes $ map (a key slocs) syncrs
|
let use a = return $ catMaybes $ map (a key slocs) syncrs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue