Skip to content

Commit fd35787

Browse files
committed
Use string interpolation
1 parent ec44e05 commit fd35787

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Source/Boxed.AspNetCore/Sitemap/SitemapGenerator.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,8 @@ private void CheckDocumentSize(string sitemapXml)
174174
{
175175
if (sitemapXml.Length >= MaximumSitemapSizeInBytes)
176176
{
177-
this.LogWarning(new SitemapException(string.Format(
178-
CultureInfo.CurrentCulture,
179-
"Sitemap exceeds the maximum size of 10MB. This is because you have unusually long URL's. Consider reducing the MaximumSitemapNodeCount. Size:<{0}>.",
180-
sitemapXml.Length)));
177+
this.LogWarning(new SitemapException(
178+
$"Sitemap exceeds the maximum size of 10MB. This is because you have unusually long URL's. Consider reducing the MaximumSitemapNodeCount. Size:<{sitemapXml.Length}>."));
181179
}
182180
}
183181

0 commit comments

Comments
 (0)