You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/10/16 13:14:38 UTC

[tomcat] branch master updated: Simplify

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 <ma...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org