use concat
This commit is contained in:
parent
9de1192c57
commit
c2b13a88bf
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ data Command = Command {
|
|||
prepCmd :: Command -> [String] -> Annex [Annex Bool]
|
||||
prepCmd Command { cmdseek = seek } params = do
|
||||
lists <- mapM (\s -> s params) seek
|
||||
return $ map doCommand $ foldl (++) [] lists
|
||||
return $ map doCommand $ concat lists
|
||||
|
||||
{- Runs a command through the start, perform and cleanup stages -}
|
||||
doCommand :: CommandStart -> CommandCleanup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue