mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-06 21:11:35 -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
|
@ -1961,7 +1961,7 @@ prop_checkQuotesInLiterals9 = verifyNotTree checkQuotesInLiterals "param=\"/foo/
|
|||
checkQuotesInLiterals params t =
|
||||
doVariableFlowAnalysis readF writeF Map.empty (variableFlow params)
|
||||
where
|
||||
getQuotes name = fmap (Map.lookup name) get
|
||||
getQuotes name = gets (Map.lookup name)
|
||||
setQuotes name ref = modify $ Map.insert name ref
|
||||
deleteQuotes = modify . Map.delete
|
||||
parents = parentMap params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue