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