Skip to content

Commit af45a17

Browse files
Prefer AssumeNotNull over the null forgiveness operator
1 parent e664422 commit af45a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler/Microsoft.AspNetCore.Razor.Language/src/Syntax/SyntaxListOfT.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public TNode this[int index]
8282
{
8383
if (unchecked((uint)index < (uint)Node.SlotCount))
8484
{
85-
return (TNode)Node.GetNodeSlot(index)!;
85+
return (TNode)Node.GetNodeSlot(index).AssumeNotNull();
8686
}
8787
}
8888
else if (index == 0)

0 commit comments

Comments
 (0)