Fix all compiler warnings

This commit is contained in:
jvyden 2022-05-15 00:36:44 -04:00
commit b9a310ef90
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
9 changed files with 27 additions and 31 deletions

View file

@ -73,7 +73,7 @@ public class GameServerStartup
async (context, next) =>
{
// Client digest check.
if (!context.Request.Cookies.TryGetValue("MM_AUTH", out string authCookie)) authCookie = string.Empty;
if (!context.Request.Cookies.TryGetValue("MM_AUTH", out string? authCookie) || authCookie == null) authCookie = string.Empty;
string digestPath = context.Request.Path;
Stream body = context.Request.Body;