mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-13 08:33:20 -07:00
Remove unnecessary "map snd"
This commit is contained in:
parent
5487b3f229
commit
d7278b95f2
1 changed files with 1 additions and 2 deletions
|
@ -997,8 +997,7 @@ missingDestination handler token = do
|
|||
args = getAllFlags token
|
||||
params = map fst $ filter (\(_,x) -> x == "") args
|
||||
hasTarget =
|
||||
any (\x -> x /= "" && x `isPrefixOf` "target-directory") $
|
||||
map snd args
|
||||
any (\(_,x) -> x /= "" && x `isPrefixOf` "target-directory") args
|
||||
|
||||
prop_checkMvArguments1 = verify checkMvArguments "mv 'foo bar'"
|
||||
prop_checkMvArguments2 = verifyNot checkMvArguments "mv foo bar"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue