Skip to content

Commit 40d16d0

Browse files
committed
Fix leftover
1 parent 2a0a566 commit 40d16d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaladoc/src/dotty/tools/scaladoc/renderers/Renderer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ abstract class Renderer(rootPackage: Member, val members: Map[DRI, Member], prot
116116

117117
(siteContext.orphanedTemplates ++ actualIndexTemplate).map(templateToPage(_, siteContext))
118118

119-
val redirectPages: Seq[Page] = staticSite.map(siteContext => siteContext.redirectTemplates.map(templateToPage(_, siteContext))).get
119+
val redirectPages: Seq[Page] = staticSite.fold(Seq.empty)(siteContext => siteContext.redirectTemplates.map(templateToPage(_, siteContext)))
120120

121121
/**
122122
* Here we have to retrive index pages from hidden pages and replace fake index pages in navigable page tree.

0 commit comments

Comments
 (0)