mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CID-1192810: Remove useless control flow
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
92858afd55
commit
f74446a195
@ -519,8 +519,6 @@ StateListener<State, VirtualMachine.Event, VirtualMachine> {
|
|||||||
public DeploymentPlanner getDeploymentPlannerByName(String plannerName) {
|
public DeploymentPlanner getDeploymentPlannerByName(String plannerName) {
|
||||||
if (plannerName != null) {
|
if (plannerName != null) {
|
||||||
for (DeploymentPlanner plannerInList : _planners) {
|
for (DeploymentPlanner plannerInList : _planners) {
|
||||||
if (plannerName != null) {
|
|
||||||
}
|
|
||||||
if (plannerName.equalsIgnoreCase(plannerInList.getName())) {
|
if (plannerName.equalsIgnoreCase(plannerInList.getName())) {
|
||||||
return plannerInList;
|
return plannerInList;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user