This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new f8bae5e Simplify
f8bae5e is described below
commit f8bae5ef16983529d1a1705fff3ff8941ff4a362
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Oct 16 14:10:59 2020 +0100
Simplify
---
java/org/apache/catalina/valves/HealthCheckValve.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/java/org/apache/catalina/valves/HealthCheckValve.java
b/java/org/apache/catalina/valves/HealthCheckValve.java
index 0b7522e..b932260 100644
--- a/java/org/apache/catalina/valves/HealthCheckValve.java
+++ b/java/org/apache/catalina/valves/HealthCheckValve.java
@@ -82,11 +82,7 @@ public class HealthCheckValve extends ValveBase {
@Override
protected synchronized void startInternal() throws LifecycleException {
super.startInternal();
- if (getContainer() instanceof Context) {
- context = true;
- } else {
- context = false;
- }
+ context = (getContainer() instanceof Context);
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]