Issue #6544 - Remove braces

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2021-07-30 07:32:19 -05:00
parent 3868360555
commit d5da842ea8
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4

View File

@ -163,15 +163,12 @@ public class GzipHandlerTest
String defaultContentType = "application/octet-stream";
if (req.getParameter("type") != null)
defaultContentType = req.getParameter("type");
ServletContextHandler servletContextHandler = ServletContextHandler.getServletContextHandler(getServletContext());
if (servletContextHandler == null)
return defaultContentType;
String contentType = servletContextHandler.getMimeTypes().getMimeByExtension(filename);
if (contentType != null)
{
return contentType;
}
return defaultContentType;
}
}