Skip to content

Commit c4a499c

Browse files
committed
simplify if check
1 parent a2f0727 commit c4a499c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/IO/Navigation/DocumentationGroup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void AddToNavigationItems(INavigationItem item, ref int fileIndex)
175175
// the index file can either be the discovered `index.md` or the parent group's
176176
// explicit index page. E.g., when grouping related files together.
177177
// If the page is referenced as hidden in the TOC do not include it in the navigation
178-
if (indexFile != md && indexReference != file)
178+
if (indexFile != md)
179179
AddToNavigationItems(new FileNavigationItem(md, this, file.Hidden), ref fileIndex);
180180
}
181181
else if (tocItem is FolderReference folder)

0 commit comments

Comments
 (0)