use mapM_
This commit is contained in:
parent
4a0fe24f39
commit
d007e58a54
4 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ unusedKeys = do
|
||||||
|
|
||||||
-- Tmp files that are dups of content already present can simply
|
-- Tmp files that are dups of content already present can simply
|
||||||
-- be removed.
|
-- be removed.
|
||||||
_ <- liftIO $ mapM (\t -> removeFile $ gitAnnexTmpLocation g t) duptmp
|
liftIO $ mapM_ (\t -> removeFile $ gitAnnexTmpLocation g t) duptmp
|
||||||
|
|
||||||
return (unused, staletmp)
|
return (unused, staletmp)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ add queue subcommand params file = M.insertWith (++) action [file] queue
|
||||||
{- Runs a queue on a git repository. -}
|
{- Runs a queue on a git repository. -}
|
||||||
run :: Git.Repo -> Queue -> IO ()
|
run :: Git.Repo -> Queue -> IO ()
|
||||||
run repo queue = do
|
run repo queue = do
|
||||||
_ <- mapM (uncurry $ runAction repo) $ M.toList queue
|
mapM_ (uncurry $ runAction repo) $ M.toList queue
|
||||||
return ()
|
return ()
|
||||||
|
|
||||||
{- Runs an Action on a list of files in a git repository.
|
{- Runs an Action on a list of files in a git repository.
|
||||||
|
|
|
@ -104,7 +104,7 @@ readConfigs = do
|
||||||
list doexpensive ++ "..."
|
list doexpensive ++ "..."
|
||||||
let todo = cheap ++ doexpensive
|
let todo = cheap ++ doexpensive
|
||||||
unless (null todo) $ do
|
unless (null todo) $ do
|
||||||
_ <- mapM tryGitConfigRead todo
|
mapM_ tryGitConfigRead todo
|
||||||
Annex.changeState $ \s -> s { Annex.remotesread = True }
|
Annex.changeState $ \s -> s { Annex.remotesread = True }
|
||||||
where
|
where
|
||||||
cachedUUID r = do
|
cachedUUID r = do
|
||||||
|
|
|
@ -41,7 +41,7 @@ upgradeFrom0 = do
|
||||||
-- do the reorganisation of the files
|
-- do the reorganisation of the files
|
||||||
let olddir = gitAnnexDir g
|
let olddir = gitAnnexDir g
|
||||||
keys <- getKeysPresent0' olddir
|
keys <- getKeysPresent0' olddir
|
||||||
_ <- mapM (\k -> moveAnnex k $ olddir </> keyFile k) keys
|
mapM_ (\k -> moveAnnex k $ olddir </> keyFile k) keys
|
||||||
|
|
||||||
-- update the symlinks to the files
|
-- update the symlinks to the files
|
||||||
files <- liftIO $ Git.inRepo g [Git.workTree g]
|
files <- liftIO $ Git.inRepo g [Git.workTree g]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue