Skip to content

Commit 81e84c2

Browse files
committed
Use execState instead of snd . runState
1 parent 34939ca commit 81e84c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ShellCheck/AnalyzerLib.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ executableFromShebang = shellFor
270270
-- This is used to populate parentMap in Parameters
271271
getParentTree :: Token -> Map.Map Id Token
272272
getParentTree t =
273-
snd . snd $ runState (doStackAnalysis pre post t) ([], Map.empty)
273+
snd $ execState (doStackAnalysis pre post t) ([], Map.empty)
274274
where
275275
pre t = modify (first ((:) t))
276276
post t = do

0 commit comments

Comments
 (0)