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 9cae8ae  Code clean-up: Add braces for clarity
9cae8ae is described below

commit 9cae8aef63a78d93fc93aacd904e71f82bb1b52f
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon May 24 11:53:59 2021 +0100

    Code clean-up: Add braces for clarity
    
    Trivial commit to trigger a CI build to test CI changes
---
 java/javax/servlet/http/HttpServlet.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/java/javax/servlet/http/HttpServlet.java 
b/java/javax/servlet/http/HttpServlet.java
index 57617e7..7cc00bc 100644
--- a/java/javax/servlet/http/HttpServlet.java
+++ b/java/javax/servlet/http/HttpServlet.java
@@ -688,10 +688,12 @@ public abstract class HttpServlet extends GenericServlet {
      */
     private void maybeSetLastModified(HttpServletResponse resp,
                                       long lastModified) {
-        if (resp.containsHeader(HEADER_LASTMOD))
+        if (resp.containsHeader(HEADER_LASTMOD)) {
             return;
-        if (lastModified >= 0)
+        }
+        if (lastModified >= 0) {
             resp.setDateHeader(HEADER_LASTMOD, lastModified);
+        }
     }
 
 

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

Reply via email to