fix: add null ignoring
All checks were successful
.NET Test Pipeline / build-and-test (pull_request) Successful in 1m14s

This commit is contained in:
Polianin Nikita 2024-01-26 20:38:49 +03:00
parent c5c4a2a8da
commit 92504295f0

View File

@ -102,7 +102,7 @@ public class Program
{
var provider = app.Services.GetService<IApiVersionDescriptionProvider>();
foreach (var description in provider.ApiVersionDescriptions)
foreach (var description in provider!.ApiVersionDescriptions)
{
var url = $"/swagger/{description.GroupName}/swagger.json";
var name = description.GroupName.ToUpperInvariant();