[tomcat] branch 9.0.x updated: Simplify

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[tomcat] branch 9.0.x updated: Simplify

markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 5c84c6a  Simplify
5c84c6a is described below

commit 5c84c6a8bf227ddd41fc247c125bffc19a29670d
Author: Mark Thomas <[hidden email]>
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 2a61cf2..736d958 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: [hidden email]
For additional commands, e-mail: [hidden email]