Skip to content

Commit 430f9ba

Browse files
GuidesBotGuidesBot
and
GuidesBot
authored
Updated by github actions from guide-getting-started (#881)
Co-authored-by: GuidesBot <[email protected]>
1 parent cbf7525 commit 430f9ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

instructions/cloud-hosted-draft-guide-development-1/instructions.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -334,21 +334,21 @@ import org.eclipse.microprofile.health.HealthCheckResponse;
334334
@ApplicationScoped
335335
public class SystemReadinessCheck implements HealthCheck {
336336
337-
private static final String readinessCheck = SystemResource.class.getSimpleName()
337+
private static final String READINESS_CHECK = SystemResource.class.getSimpleName()
338338
+ " Readiness Check";
339339
340340
@Inject
341341
@ConfigProperty(name = "io_openliberty_guides_system_inMaintenance")
342342
Provider<String> inMaintenance;
343-
343+
344344
@Override
345345
public HealthCheckResponse call() {
346346
if (inMaintenance != null && inMaintenance.get().equalsIgnoreCase("true")) {
347-
return HealthCheckResponse.down(readinessCheck);
347+
return HealthCheckResponse.down(READINESS_CHECK);
348348
}
349-
return HealthCheckResponse.up(readinessCheck);
349+
return HealthCheckResponse.up(READINESS_CHECK);
350350
}
351-
351+
352352
}
353353
```
354354
{: codeblock}
@@ -400,7 +400,7 @@ public class SystemLivenessCheck implements HealthCheck {
400400
.withData("memory max", memMax)
401401
.status(memUsed < memMax * 0.9).build();
402402
}
403-
403+
404404
}
405405
```
406406
{: codeblock}

0 commit comments

Comments
 (0)