Skip to content

Commit

Permalink
Fix NRE warnning
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosifne committed Jan 21, 2021
1 parent 0b60bdb commit 6b7fa6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ private static bool WithinAttributeLists(SyntaxNode node, int caretPosition)
return attributeLists.Span.Contains(caretPosition);
}

private static bool WithinBraces(SyntaxNode node, int caretPosition)
private static bool WithinBraces(SyntaxNode? node, int caretPosition)
{
var (openBrace, closeBrace) = node.GetBraces();
return TextSpan.FromBounds(openBrace.SpanStart, closeBrace.Span.End).Contains(caretPosition);
Expand Down

0 comments on commit 6b7fa6c

Please sign in to comment.