1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove unreachable code (#26820)

Break statement is unreachable in current for loop.
Safely remove break statement.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-07-15 00:22:30 +05:30 committed by Sloane Hertel
parent b6fdc904a9
commit 6bc15d11b9

View file

@ -216,7 +216,6 @@ class VMwareResourcePool(object):
if name in [c.name, c._GetMoId()]:
if return_all is False:
return c
break
else:
obj.append(c)