fix: pmd complaint about dead store.
@@ -108,7 +108,7 @@ public class OpenShiftServiceImpl implements OpenShiftService {
public void scale(String name, Map<String, String> labels, int desiredReplicas, long amount, TimeUnit timeUnit) throws InterruptedException {
String sName = openshiftName(name);
- DeploymentConfig deploymentConfig = getDeploymentsByLabel(labels)
+ getDeploymentsByLabel(labels)
.stream()
.filter(d -> d.getMetadata().getName().equals(sName))
.map(d -> new DeploymentConfigBuilder(d).editSpec().withReplicas(desiredReplicas).endSpec().build())
