mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
committed by
Sloane Hertel
parent
b6fdc904a9
commit
6bc15d11b9
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user