Remove redundant initialization attributes of variables
@@ -64,7 +64,7 @@ public class KubernetesClientServicesListSupplier extends KubernetesServicesList
public Flux<List<ServiceInstance>> get() {
LOG.info("Getting services with id " + this.getServiceId());
List<ServiceInstance> result = new ArrayList<>();
- List<V1Service> services = null;
+ List<V1Service> services;
try {
if (discoveryProperties.allNamespaces()) {
services = coreV1Api.listServiceForAllNamespaces(null, null, "metadata.name=" + this.getServiceId(),
