From 96e5a6bbf6517a7172ebd466781258ef928fbc74 Mon Sep 17 00:00:00 2001 From: Bryan Soltis Date: Fri, 28 Jul 2023 12:43:41 -0500 Subject: [PATCH] - Resovled VS compilation warnings --- src/Helpers/ConfigurationHelper.cs | 2 +- src/Pages/_Host.cshtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Helpers/ConfigurationHelper.cs b/src/Helpers/ConfigurationHelper.cs index afcd556..463bd6f 100644 --- a/src/Helpers/ConfigurationHelper.cs +++ b/src/Helpers/ConfigurationHelper.cs @@ -28,7 +28,7 @@ public static SiteConfiguration GetConfigurationData() .AddJsonFile("settings/appsettings.json") .Build() .Get(); - return config; + return config!; } public static string GetAppSetting(string key, bool decrypt = false) diff --git a/src/Pages/_Host.cshtml b/src/Pages/_Host.cshtml index 5e21119..6787bee 100644 --- a/src/Pages/_Host.cshtml +++ b/src/Pages/_Host.cshtml @@ -21,7 +21,7 @@ if (this.HttpContext.Request.Headers.ContainsKey("X-MS-CLIENT-PRINCIPAL-IDP")) { // Set the identity provider - identityProviderDetails.CurrentIdentityProvider = this.HttpContext.Request.Headers["X-MS-CLIENT-PRINCIPAL-IDP"]; + identityProviderDetails.CurrentIdentityProvider = this.HttpContext.Request.Headers["X-MS-CLIENT-PRINCIPAL-IDP"]!; } } @@ -39,7 +39,7 @@ if (this.HttpContext.Request.Headers.ContainsKey(headername)) { // Set the current user - identityProviderDetails.CurrentUser = this.HttpContext.Request.Headers[headername]; + identityProviderDetails.CurrentUser = this.HttpContext.Request.Headers[headername]!; } } }