mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Removed superfluous messages for [ cow]
This commit is contained in:
parent
1fb3380e68
commit
b765ed1a44
1 changed files with 1 additions and 6 deletions
|
@ -475,12 +475,7 @@ readCondition = called "test expression" $ do
|
||||||
condition <- readConditionContents single
|
condition <- readConditionContents single
|
||||||
|
|
||||||
cpos <- getPosition
|
cpos <- getPosition
|
||||||
close <- (try $ string "]]") <|> (string "]") <|> do
|
close <- (try $ string "]]") <|> (string "]")
|
||||||
let match = (if single then "]" else "]]")
|
|
||||||
parseProblemAt opos ErrorC $ "Couldn't find matching " ++ match ++ "."
|
|
||||||
parseProblem ErrorC $ "Expected " ++ match ++ "."
|
|
||||||
fail "condition"
|
|
||||||
|
|
||||||
when (open == "[[" && close /= "]]") $ parseProblemAt cpos ErrorC "Did you mean ]] ?"
|
when (open == "[[" && close /= "]]") $ parseProblemAt cpos ErrorC "Did you mean ]] ?"
|
||||||
when (open == "[" && close /= "]" ) $ parseProblemAt opos ErrorC "Did you mean [[ ?"
|
when (open == "[" && close /= "]" ) $ parseProblemAt opos ErrorC "Did you mean [[ ?"
|
||||||
return $ T_Condition id (if single then SingleBracket else DoubleBracket) condition
|
return $ T_Condition id (if single then SingleBracket else DoubleBracket) condition
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue