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:
parent
b6fdc904a9
commit
6bc15d11b9
1 changed files with 0 additions and 1 deletions
|
@ -216,7 +216,6 @@ class VMwareResourcePool(object):
|
||||||
if name in [c.name, c._GetMoId()]:
|
if name in [c.name, c._GetMoId()]:
|
||||||
if return_all is False:
|
if return_all is False:
|
||||||
return c
|
return c
|
||||||
break
|
|
||||||
else:
|
else:
|
||||||
obj.append(c)
|
obj.append(c)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue