Skip to content

Commit 74fa413

Browse files
committed
Correction
1 parent 541d9f7 commit 74fa413

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ trait SiteRenderer(using DocContext) extends Locations:
5858
.orElse(asStaticSite)
5959
.orElse(asAsset)
6060
.getOrElse {
61-
if(!summon[DocContext].args.noLinkWarnings)
62-
report.warn(s"Unable to resolve link '$str'", content.template.templateFile.file)
61+
if (!summon[DocContext].args.noLinkWarnings) then
62+
val msg = s"Unable to resolve link '$str'"
63+
report.warn(msg, content.template.templateFile.file)
6364
str
6465
}
6566

0 commit comments

Comments
 (0)