mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-06 22:48:31 +08:00
Removed duplicate check for [[ a == b + 1 ]]
This commit is contained in:
@@ -329,7 +329,6 @@ readConditionContents single = do
|
||||
endedWith _ _ = False
|
||||
|
||||
readCondAndOp = do
|
||||
optional guardArithmetic
|
||||
id <- getNextId
|
||||
x <- try (string "&&" <|> string "-a")
|
||||
when (single && x == "&&") $ addNoteFor id $ Note ErrorC 1022 "You can't use && inside [..]. Use [[..]] instead."
|
||||
|
Reference in New Issue
Block a user