Skip to content

Commit

Permalink
#26277 sonarq feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Jan 9, 2024
1 parent bebeed1 commit 15a43ed
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public JsContentMap fireEdit(final Map contentletMap,
throw new IllegalArgumentException("Contentlet map is required or identifier");
}

if (null == contentletMap || contentletMap.isEmpty() || !contentletMap.containsKey(CONTENT_TYPE)) {
if (!contentletMap.containsKey(CONTENT_TYPE)) {

throw new IllegalArgumentException("ContentType attribute is required on the contentMap");
}
Expand Down Expand Up @@ -161,7 +161,7 @@ public JsContentMap firePublish(final Map contentletMap,
throw new IllegalArgumentException("Contentlet map is required or identifier");
}

if (null == contentletMap || contentletMap.isEmpty() || !contentletMap.containsKey(CONTENT_TYPE)) {
if (!contentletMap.containsKey(CONTENT_TYPE)) {

throw new IllegalArgumentException("ContentType attribute is required on the contentMap");
}
Expand Down Expand Up @@ -200,7 +200,7 @@ public JsContentMap fireUnpublish(final Map contentletMap,
throw new IllegalArgumentException("Contentlet map is required or identifier");
}

if (null == contentletMap || contentletMap.isEmpty() || !contentletMap.containsKey(CONTENT_TYPE)) {
if (!contentletMap.containsKey(CONTENT_TYPE)) {

throw new IllegalArgumentException("ContentType attribute is required on the contentMap");
}
Expand Down Expand Up @@ -239,7 +239,7 @@ public JsContentMap fireArchive(final Map contentletMap,
throw new IllegalArgumentException("Contentlet map is required or identifier");
}

if (null == contentletMap || contentletMap.isEmpty() || !contentletMap.containsKey(CONTENT_TYPE)) {
if (!contentletMap.containsKey(CONTENT_TYPE)) {

throw new IllegalArgumentException("contentType attribute is required on the contentMap");
}
Expand Down Expand Up @@ -279,7 +279,7 @@ public JsContentMap fireUnarchive(final Map contentletMap,
throw new IllegalArgumentException("Contentlet map is required or identifier");
}

if (null == contentletMap || contentletMap.isEmpty() || !contentletMap.containsKey(CONTENT_TYPE)) {
if (!contentletMap.containsKey(CONTENT_TYPE)) {

throw new IllegalArgumentException("ContentType attribute is required on the contentMap");
}
Expand Down Expand Up @@ -319,7 +319,7 @@ public JsContentMap fireDelete(final Map contentletMap,
throw new IllegalArgumentException("Contentlet map is required or identifier");
}

if (null == contentletMap || contentletMap.isEmpty() || !contentletMap.containsKey(CONTENT_TYPE)) {
if (!contentletMap.containsKey(CONTENT_TYPE)) {

throw new IllegalArgumentException("contentType attribute is required on the contentMap");
}
Expand Down Expand Up @@ -361,7 +361,7 @@ public JsContentMap fireDestroy(final Map contentletMap,
throw new IllegalArgumentException("Contentlet map is required or identifier");
}

if (null == contentletMap || contentletMap.isEmpty() || !contentletMap.containsKey(CONTENT_TYPE)) {
if (!contentletMap.containsKey(CONTENT_TYPE)) {

throw new IllegalArgumentException("ContentType attribute is required on the contentMap");
}
Expand Down

0 comments on commit 15a43ed

Please sign in to comment.