mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Removed unnecessary null check before Boolean.parseBoolean
This commit is contained in:
@@ -138,7 +138,7 @@ public class AuditLogGet extends BaseAuditRetrievalWebScript
|
|||||||
boolean attach = false;
|
boolean attach = false;
|
||||||
String attachFileName = null;
|
String attachFileName = null;
|
||||||
String export = req.getParameter(PARAM_EXPORT);
|
String export = req.getParameter(PARAM_EXPORT);
|
||||||
if (export != null && Boolean.parseBoolean(export))
|
if (Boolean.parseBoolean(export))
|
||||||
{
|
{
|
||||||
attach = true;
|
attach = true;
|
||||||
attachFileName = auditTrail.getName();
|
attachFileName = auditTrail.getName();
|
||||||
|
@@ -268,7 +268,7 @@ public class DynamicAuthoritiesGet extends AbstractWebScript implements RecordsM
|
|||||||
{
|
{
|
||||||
boolean attach = false;
|
boolean attach = false;
|
||||||
String export = req.getParameter(PARAM_EXPORT);
|
String export = req.getParameter(PARAM_EXPORT);
|
||||||
if (export != null && Boolean.parseBoolean(export))
|
if (Boolean.parseBoolean(export))
|
||||||
{
|
{
|
||||||
attach = true;
|
attach = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user