Skip to content

Commit

Permalink
#31402 fix mantain code style
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinogiardino committed Mar 1, 2025
1 parent b8ff27e commit e6918e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ private Optional<Contentlet> findUrlContentlet(final HttpServletRequest request)

Contentlet contentlet = null;

if (request.getAttribute(WebKeys.WIKI_CONTENTLET_INODE) != null) {
if (null != request.getAttribute(WebKeys.WIKI_CONTENTLET_INODE)) {
String inode = (String) request.getAttribute(WebKeys.WIKI_CONTENTLET_INODE);
contentlet = contentletAPI.find(inode, user, false);
} else if (request.getAttribute(WebKeys.WIKI_CONTENTLET) != null) {
} else if (null != request.getAttribute(WebKeys.WIKI_CONTENTLET)) {
String id = (String) request.getAttribute(WebKeys.WIKI_CONTENTLET);
contentlet = contentletAPI.findContentletByIdentifierAnyLanguage(id);
}
Expand Down

0 comments on commit e6918e2

Please sign in to comment.