mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 14:27:35 +08:00
Use Map.! instead of reimplementing it
This commit is contained in:
@@ -2544,7 +2544,7 @@ checkUnpassedInFunctions params root =
|
|||||||
name ++ " references arguments, but none are ever passed."
|
name ++ " references arguments, but none are ever passed."
|
||||||
|
|
||||||
getFunction ((name, _, _):_) =
|
getFunction ((name, _, _):_) =
|
||||||
(name, fromJust $ Map.lookup name functionMap)
|
(name, functionMap Map.! name)
|
||||||
|
|
||||||
|
|
||||||
prop_checkOverridingPath1 = verify checkOverridingPath "PATH=\"$var/$foo\""
|
prop_checkOverridingPath1 = verify checkOverridingPath "PATH=\"$var/$foo\""
|
||||||
|
Reference in New Issue
Block a user