mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
Use mapM_ and sequence_ instead of reimplementing them
This commit is contained in:
parent
cc424bac11
commit
ffbbfcfe25
4 changed files with 10 additions and 12 deletions
|
@ -586,7 +586,7 @@ readConditionContents single =
|
|||
return $ TC_Nullary id typ x
|
||||
)
|
||||
|
||||
checkTrailingOp x = fromMaybe (return ()) $ do
|
||||
checkTrailingOp x = sequence_ $ do
|
||||
(T_Literal id str) <- getTrailingUnquotedLiteral x
|
||||
trailingOp <- find (`isSuffixOf` str) binaryTestOps
|
||||
return $ parseProblemAtId id ErrorC 1108 $
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue