Skip to content

Commit

Permalink
- Resovled VS compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanSoltis committed Jul 28, 2023
1 parent fe7baf1 commit 96e5a6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Helpers/ConfigurationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static SiteConfiguration GetConfigurationData()
.AddJsonFile("settings/appsettings.json")
.Build()
.Get<SiteConfiguration>();
return config;
return config!;
}

public static string GetAppSetting(string key, bool decrypt = false)
Expand Down
4 changes: 2 additions & 2 deletions src/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]!;
}
}

Expand All @@ -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]!;
}
}
}
Expand Down

0 comments on commit 96e5a6b

Please sign in to comment.