From 802dd74b1f61cd73fbe5e0675509b004609276cb Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Mon, 10 Oct 2022 18:59:26 -0300 Subject: [PATCH] Fix ArC warning --- .../kotlin/io/quarkus/code/rest/CodeQuarkusHealthCheck.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/main/kotlin/io/quarkus/code/rest/CodeQuarkusHealthCheck.kt b/api/src/main/kotlin/io/quarkus/code/rest/CodeQuarkusHealthCheck.kt index 908c14001..30d0add77 100644 --- a/api/src/main/kotlin/io/quarkus/code/rest/CodeQuarkusHealthCheck.kt +++ b/api/src/main/kotlin/io/quarkus/code/rest/CodeQuarkusHealthCheck.kt @@ -20,12 +20,11 @@ class CodeQuarkusHealthCheck : HealthCheck { internal lateinit var platformService: PlatformService @Inject - internal var projectCreator: QuarkusProjectService? = null + internal lateinit var projectCreator: QuarkusProjectService override fun call(): HealthCheckResponse { val responseBuilder = HealthCheckResponse.named("Code Quarkus HealthCheck") - if(platformService.isLoaded - && projectCreator != null) { + if(platformService.isLoaded) { responseBuilder .withData("cache last updated", platformService.cacheLastUpdated.toString()) .withData("registry timestamp", platformService.platformsCache.platformTimestamp)