mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
Use execState instead of reimplementing it
This commit is contained in:
parent
b3c04ce3d0
commit
14ee462ccd
1 changed files with 1 additions and 2 deletions
|
@ -409,8 +409,7 @@ tokenIsJustCommandOutput t = case t of
|
|||
|
||||
-- TODO: Replace this with a proper Control Flow Graph
|
||||
getVariableFlow params t =
|
||||
let (_, stack) = runState (doStackAnalysis startScope endScope t) []
|
||||
in reverse stack
|
||||
reverse $ execState (doStackAnalysis startScope endScope t) []
|
||||
where
|
||||
startScope t =
|
||||
let scopeType = leadType params t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue