mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 18:52:52 +08:00
Add nil case that went missing in 4fd0615
This commit is contained in:
@@ -4380,6 +4380,7 @@ checkEqualsInCommand params originalToken =
|
|||||||
isLeadingNumberVar s =
|
isLeadingNumberVar s =
|
||||||
case takeWhile (/= '=') s of
|
case takeWhile (/= '=') s of
|
||||||
lead@(x:_) -> isDigit x && all isVariableChar lead && not (all isDigit lead)
|
lead@(x:_) -> isDigit x && all isVariableChar lead && not (all isDigit lead)
|
||||||
|
[] -> False
|
||||||
|
|
||||||
msg cmd leading (T_Literal litId s) = do
|
msg cmd leading (T_Literal litId s) = do
|
||||||
-- There are many different cases, and the order of the branches matter.
|
-- There are many different cases, and the order of the branches matter.
|
||||||
|
Reference in New Issue
Block a user