mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Remove dead code from pacman module
The manual check to see if get_bin_path() returned anything is redundant, because we pass True to the required parameter of get_bin_path(). This automatically causes the task to fail if the pacman binary isn't available. Therefore, the code within the if statement being removed is never called.
This commit is contained in:
committed by
Matt Clay
parent
8227105f02
commit
b58eaca7e8
@@ -301,9 +301,6 @@ def main():
|
||||
|
||||
pacman_path = module.get_bin_path('pacman', True)
|
||||
|
||||
if not os.path.exists(pacman_path):
|
||||
module.fail_json(msg="cannot find pacman, in path %s" % (pacman_path))
|
||||
|
||||
p = module.params
|
||||
|
||||
# normalize the state parameter
|
||||
|
||||
Reference in New Issue
Block a user