From cb4f4e7edc8721e12bd7a4ace9f88e8468961c53 Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Mon, 28 Dec 2020 17:34:52 -0500 Subject: [PATCH] Use mapM_ instead of reimplementing it --- src/ShellCheck/Analytics.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShellCheck/Analytics.hs b/src/ShellCheck/Analytics.hs index 2fb1253..3d5692a 100644 --- a/src/ShellCheck/Analytics.hs +++ b/src/ShellCheck/Analytics.hs @@ -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