Remove redundant initialization attributes of variables (#1131)

This commit is contained in:
weihubeats
2022-11-10 21:39:21 +08:00
committed by GitHub
parent 1cef021c77
commit 342eab5242

View File

@@ -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(),