Skip to content

Commit

Permalink
Allow match macro inner types to be null again
Browse files Browse the repository at this point in the history
  • Loading branch information
colinator27 committed Jul 10, 2024
1 parent 7b8fbae commit bfe77cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static MatchMacroType ReadContents(ref Utf8JsonReader reader, IMacroTypeC
{
throw new JsonException();
}
return new MatchMacroType(innerType ?? throw new JsonException(), conditionalType, conditionalValue);
return new MatchMacroType(innerType, conditionalType, conditionalValue);
}

if (reader.TokenType != JsonTokenType.PropertyName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static MatchNotMacroType ReadContents(ref Utf8JsonReader reader, IMacroTy
{
throw new JsonException();
}
return new MatchNotMacroType(innerType ?? throw new JsonException(), conditionalType, conditionalValue);
return new MatchNotMacroType(innerType, conditionalType, conditionalValue);
}

if (reader.TokenType != JsonTokenType.PropertyName)
Expand Down

0 comments on commit bfe77cd

Please sign in to comment.