mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-06 04:51:37 -07:00
Use mapM instead of implementing a slower version of it
This commit is contained in:
parent
1e32139f66
commit
cb01cbf7eb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue