Skip to content

Commit ec44e05

Browse files
committed
Fix string format
1 parent ac00889 commit ec44e05

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
@@ -189,10 +189,8 @@ private void CheckSitemapCount(int sitemapCount)
189189
{
190190
if (sitemapCount > MaximumSitemapCount)
191191
{
192-
this.LogWarning(new SitemapException(string.Format(
193-
CultureInfo.CurrentCulture,
194-
"Sitemap index file exceeds the maximum number of allowed sitemaps of 50,000. Count:<{1}>",
195-
sitemapCount)));
192+
this.LogWarning(new SitemapException(
193+
$"Sitemap index file exceeds the maximum number of allowed sitemaps of 50,000. Count:<{sitemapCount}>"));
196194
}
197195
}
198196
}

0 commit comments

Comments
 (0)