Skip to content

Commit

Permalink
Fix null warning
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Jan 7, 2023
1 parent 7c34c2d commit 187703c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Reactor.Impostor.Http/ClientModsHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ public async Task InvokeAsync(HttpContext context, RequestDelegate next)
return null;
}

private ReactorClientInfo? BuildReactorClientInfo(string str)
private ReactorClientInfo? BuildReactorClientInfo(string? str)
{
if (str == null)
{
_logger.LogError("Expected a non-null value");
return null;
}

var parts = str.Split(';');
if (parts.Length < 2)
{
Expand Down

0 comments on commit 187703c

Please sign in to comment.