mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
Use gets instead of fmapping the result of get
This commit is contained in:
parent
d7278b95f2
commit
f25b8bd03a
2 changed files with 2 additions and 2 deletions
|
@ -325,7 +325,7 @@ parseProblem level code msg = do
|
|||
parseProblemAt pos level code msg
|
||||
|
||||
setCurrentContexts c = Ms.modify (\state -> state { contextStack = c })
|
||||
getCurrentContexts = contextStack <$> Ms.get
|
||||
getCurrentContexts = Ms.gets contextStack
|
||||
|
||||
popContext = do
|
||||
v <- getCurrentContexts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue