Remove redundant initialization attributes of variables (#1131)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user