diff --git a/jkube-kit/jkube-kit-vertx/src/main/java/org/eclipse/jkube/vertx/enricher/VertxHealthCheckEnricher.java b/jkube-kit/jkube-kit-vertx/src/main/java/org/eclipse/jkube/vertx/enricher/VertxHealthCheckEnricher.java index 8c447c91b9..ca7a6358f0 100644 --- a/jkube-kit/jkube-kit-vertx/src/main/java/org/eclipse/jkube/vertx/enricher/VertxHealthCheckEnricher.java +++ b/jkube-kit/jkube-kit-vertx/src/main/java/org/eclipse/jkube/vertx/enricher/VertxHealthCheckEnricher.java @@ -146,9 +146,8 @@ private Probe discoverVertxHealthCheck(boolean readiness) { Optional timeout = getIntegerValue(Config.TIMEOUT, readiness); Optional successThreshold = getIntegerValue(Config.SUCCESS_THRESHOLD, readiness); Optional failureThreshold = getIntegerValue(Config.FAILURE_THRESHOLD, readiness); - List command = getListValue(Config.COMMAND, readiness).orElse(Collections.emptyList()); - Map headers = getMapValue(Config.HEADERS, readiness).orElse(Collections.emptyMap()); - + List command = getListValue(Config.COMMAND, readiness).orElse(Collections.emptyList()); + Map headers = getMapValue(Config.HEADERS, readiness).orElse(Collections.emptyMap()); // Validate // Port and port-name cannot be set at the same time