mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-26 15:00:35 +08:00
Use mapM_ instead of sequence_ and <$>
This commit is contained in:
@@ -78,7 +78,7 @@ controlFlowEffectChecks = [
|
|||||||
runNodeChecks :: [ControlFlowNodeCheck] -> ControlFlowCheck
|
runNodeChecks :: [ControlFlowNodeCheck] -> ControlFlowCheck
|
||||||
runNodeChecks perNode = do
|
runNodeChecks perNode = do
|
||||||
cfg <- asks cfgAnalysis
|
cfg <- asks cfgAnalysis
|
||||||
sequence_ $ runOnAll <$> cfg
|
mapM_ runOnAll cfg
|
||||||
where
|
where
|
||||||
getData datas n@(node, label) = do
|
getData datas n@(node, label) = do
|
||||||
(pre, post) <- M.lookup node datas
|
(pre, post) <- M.lookup node datas
|
||||||
|
Reference in New Issue
Block a user