mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-20 21:33:50 -07:00
Improve warning for 'else if'.
This commit is contained in:
parent
7af3470a91
commit
6dc419bbf5
1 changed files with 1 additions and 1 deletions
|
@ -1935,7 +1935,7 @@ readElifPart = called "elif clause" $ do
|
|||
pos <- getPosition
|
||||
correctElif <- elif
|
||||
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
|
||||
condition <- readTerm
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue