Skip to content

Commit

Permalink
Feature/configure code analyzers (#302)
Browse files Browse the repository at this point in the history
* Include code analyzers as part of build

* Updates
  • Loading branch information
k3ldar authored Dec 15, 2024
1 parent 1893d71 commit a5b8323
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Plugins/Spider.Plugin/Classes/SpiderMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,11 @@ public async Task Invoke(HttpContext context)
.Select(x => x.ToString())
.ToArray();

if (sitemaps != null)
{

string url = GetHost(context);
string url = GetHost(context);

for (int i = 0; i < sitemaps.Length; i++)
{
stringBuilder.Append($"\r\n\r\nSitemap: {url}{sitemaps[i][1..]}\n");
}
for (int i = 0; i < sitemaps.Length; i++)
{
stringBuilder.Append($"\r\n\r\nSitemap: {url}{sitemaps[i][1..]}\n");
}
}

Expand Down

0 comments on commit a5b8323

Please sign in to comment.