Removed unnecessary null check before Boolean.parseBoolean

This commit is contained in:
cagache
2019-07-01 16:28:48 +03:00
parent da33dc1ae1
commit c5907dbc10
2 changed files with 2 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ public class AuditLogGet extends BaseAuditRetrievalWebScript
boolean attach = false;
String attachFileName = null;
String export = req.getParameter(PARAM_EXPORT);
if (export != null && Boolean.parseBoolean(export))
if (Boolean.parseBoolean(export))
{
attach = true;
attachFileName = auditTrail.getName();

View File

@@ -268,7 +268,7 @@ public class DynamicAuthoritiesGet extends AbstractWebScript implements RecordsM
{
boolean attach = false;
String export = req.getParameter(PARAM_EXPORT);
if (export != null && Boolean.parseBoolean(export))
if (Boolean.parseBoolean(export))
{
attach = true;
}