Skip to content

Commit

Permalink
Add nil case that went missing in 4fd0615
Browse files Browse the repository at this point in the history
  • Loading branch information
josephcsible committed Nov 3, 2023
1 parent 2a95bc6 commit 1aeab28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ShellCheck/Analytics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4380,6 +4380,7 @@ checkEqualsInCommand params originalToken =
isLeadingNumberVar s =
case takeWhile (/= '=') s of
lead@(x:_) -> isDigit x && all isVariableChar lead && not (all isDigit lead)
[] -> False

msg cmd leading (T_Literal litId s) = do
-- There are many different cases, and the order of the branches matter.
Expand Down

0 comments on commit 1aeab28

Please sign in to comment.