mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 20:23:03 +08:00
Improve warning for 'else if'.
This commit is contained in:
@@ -1935,7 +1935,7 @@ readElifPart = called "elif clause" $ do
|
|||||||
pos <- getPosition
|
pos <- getPosition
|
||||||
correctElif <- elif
|
correctElif <- elif
|
||||||
unless correctElif $
|
unless correctElif $
|
||||||
parseProblemAt pos ErrorC 1075 "Use 'elif' instead of 'else if'."
|
parseProblemAt pos ErrorC 1075 "Use 'elif' instead of 'else if' (or put 'if' on new line if nesting)."
|
||||||
allspacing
|
allspacing
|
||||||
condition <- readTerm
|
condition <- readTerm
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user