mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 20:51:56 +08:00
Use mapM instead of implementing a slower version of it
This commit is contained in:
@@ -431,7 +431,7 @@ checkWrongArithmeticAssignment params (T_SimpleCommand id (T_Assignment _ _ _ _
|
||||
insertRef _ = Prelude.id
|
||||
|
||||
getNormalString (T_NormalWord _ words) = do
|
||||
parts <- foldl (liftM2 (\x y -> x ++ [y])) (Just []) $ map getLiterals words
|
||||
parts <- mapM getLiterals words
|
||||
return $ concat parts
|
||||
getNormalString _ = Nothing
|
||||
|
||||
|
Reference in New Issue
Block a user