mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 08:01:12 +08:00
Abuse STRIP to avoid crashes on unsupported AST nodes
This commit is contained in:
@@ -887,7 +887,9 @@ build t = do
|
||||
T_Less _ -> none
|
||||
T_ParamSubSpecialChar _ _ -> none
|
||||
|
||||
x -> error ("Unimplemented: " ++ show x)
|
||||
x -> do
|
||||
error ("Unimplemented: " ++ show x) -- STRIP
|
||||
none
|
||||
|
||||
-- Still in `where` clause
|
||||
forInHelper id name words body = do
|
||||
|
Reference in New Issue
Block a user