mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 17:11:00 +08:00
Use mapM_ instead of reimplementing it
This commit is contained in:
@@ -3808,7 +3808,7 @@ checkAliasUsedInSameParsingUnit params root =
|
||||
-- Group them by whether they start on the same line where the previous one ended
|
||||
units = groupByLink followsOnLine commands
|
||||
in
|
||||
execWriter $ sequence_ $ map checkUnit units
|
||||
execWriter $ mapM_ checkUnit units
|
||||
where
|
||||
lineSpan t =
|
||||
let m = tokenPositions params in do
|
||||
|
Reference in New Issue
Block a user