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

commit 5ec77a49fd123c3b46e1a015a18e8bc6fe89aa13
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Apr 20 18:36:59 2021 +0100

    Remove unnecessary code
---
 java/org/apache/jasper/compiler/Generator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/jasper/compiler/Generator.java 
b/java/org/apache/jasper/compiler/Generator.java
index 3fdf3c4..873646a 100644
--- a/java/org/apache/jasper/compiler/Generator.java
+++ b/java/org/apache/jasper/compiler/Generator.java
@@ -2092,7 +2092,7 @@ class Generator {
             String text = n.getText();
             // If the extended option is being used attempt to minimize the
             // frequency of regex operations.
-            if ((ctxt != null) && 
ctxt.getOptions().getTrimSpaces().equals(TrimSpacesOption.EXTENDED) &&
+            if 
(ctxt.getOptions().getTrimSpaces().equals(TrimSpacesOption.EXTENDED) &&
                     text.contains("\n")) {
                 // Ensure there are no <pre> or </pre> tags embedded in this
                 // text - if there are, we want to NOT modify the whitespace.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to