mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-09 05:53:06 +08:00
Fix infinite loop on annotations for SC2188 (fixes #1413)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user