mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-15 01:23:07 -07:00
Fix infinite loop on annotations for SC2188 (fixes #1413)
This commit is contained in:
parent
5b3f17c29d
commit
138080bdc7
2 changed files with 3 additions and 1 deletions
|
@ -2692,7 +2692,7 @@ checkRedirectedNowhere params token =
|
|||
case drop 1 $ getPath (parentMap params) t of
|
||||
T_DollarExpansion _ [_] : _ -> True
|
||||
T_Backticked _ [_] : _ -> True
|
||||
T_Annotation _ _ u : _ -> isInExpansion u
|
||||
t@T_Annotation {} : _ -> isInExpansion t
|
||||
_ -> False
|
||||
getDanglingRedirect token =
|
||||
case token of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue