Skip to content

Commit

Permalink
Use mapM_ instead of sequence_ and <$>
Browse files Browse the repository at this point in the history
  • Loading branch information
josephcsible committed Dec 14, 2024
1 parent 26b949b commit 7deb7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShellCheck/Checks/ControlFlow.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7deb7e8

Please sign in to comment.