Skip to content

Commit 986fc76

Browse files
committed
using null-conditional operator
1 parent e65fd6e commit 986fc76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Newtonsoft.Json/JsonReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public CultureInfo Culture
312312

313313
internal JsonPosition GetPosition(int depth)
314314
{
315-
if (_stack != null && depth < _stack.Count)
315+
if (depth < _stack?.Count)
316316
{
317317
return _stack[depth];
318318
}

0 commit comments

Comments
 (0)