From 3321bf087caafae91d53557136091629a6ebb48c Mon Sep 17 00:00:00 2001 From: Michiel Post Date: Thu, 18 Feb 2021 16:25:58 +0100 Subject: [PATCH] GetSwaggerAuthKey should not return nullable string (#49) --- templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs b/templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs index 43544a4..8dd1ea5 100644 --- a/templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs +++ b/templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs @@ -118,7 +118,7 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi { var value = Environment.GetEnvironmentVariable(key); - return value; + return value ?? string.Empty; } } }