You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/09/30 21:57:50 UTC

[maven-fluido-skin] 05/08: Don't test for null of it cannot be null

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch site-model-rework
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git

commit 2bb9ebbb20dbbfca3029baef99cdfc179e2190e4
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sat Sep 30 19:27:44 2023 +0200

    Don't test for null of it cannot be null
---
 src/main/resources/META-INF/maven/site-macros.vm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/META-INF/maven/site-macros.vm b/src/main/resources/META-INF/maven/site-macros.vm
index 1b5e925..36920cf 100644
--- a/src/main/resources/META-INF/maven/site-macros.vm
+++ b/src/main/resources/META-INF/maven/site-macros.vm
@@ -260,7 +260,7 @@
 #end
 ##
 #macro ( displayTree $item $display )
-#**##if ( $item && $item.items && $item.items.size() > 0 )
+#**##if ( $item.items && $item.items.size() > 0 )
 #*  *##foreach( $subItem in $item.items )
 #*    *##set ( $subItemHref = $PathTool.calculateLink( $subItem.href, $relativePath ) )
 #*    *##set ( $subItemHref = $subItemHref.replaceAll( '\\', '/' ) )
@@ -279,7 +279,7 @@
 #**##set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
 #**##set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
 ##
-#**##if ( $item && $item.items && $item.items.size() > 0 )
+#**##if ( $item.items && $item.items.size() > 0 )
 #*  *##if ( $item.collapse == false )
 #*    *##set ( $collapseClass = "icon-chevron-down" )
 #*  *##else