From 92504295f076f01fd8e7f6bc1225114c9c423642 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Fri, 26 Jan 2024 20:38:49 +0300 Subject: [PATCH] fix: add null ignoring --- Endpoint/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Endpoint/Program.cs b/Endpoint/Program.cs index f649536..920ce15 100644 --- a/Endpoint/Program.cs +++ b/Endpoint/Program.cs @@ -102,7 +102,7 @@ public class Program { var provider = app.Services.GetService(); - foreach (var description in provider.ApiVersionDescriptions) + foreach (var description in provider!.ApiVersionDescriptions) { var url = $"/swagger/{description.GroupName}/swagger.json"; var name = description.GroupName.ToUpperInvariant();