Skip to content

Commit

Permalink
Fix ArC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 11, 2022
1 parent b14cf1e commit 802dd74
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 802dd74

Please sign in to comment.