From 66c136236ff6bf0e705f9ac9c8de72d605fb3621 Mon Sep 17 00:00:00 2001 From: Jared Parsons Date: Tue, 17 Dec 2019 14:43:37 -0800 Subject: [PATCH] Respond to PR feedback --- .../Core/Portable/InternalUtilities/SetWithInsertionOrder.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Compilers/Core/Portable/InternalUtilities/SetWithInsertionOrder.cs b/src/Compilers/Core/Portable/InternalUtilities/SetWithInsertionOrder.cs index ea6f522113e..6f9ebf5ff53 100644 --- a/src/Compilers/Core/Portable/InternalUtilities/SetWithInsertionOrder.cs +++ b/src/Compilers/Core/Portable/InternalUtilities/SetWithInsertionOrder.cs @@ -96,7 +96,6 @@ public IEnumerator GetEnumerator() public ImmutableArray AsImmutable() => _elements.ToImmutableArrayOrEmpty(); - [MaybeNull] - public T this[int i] => _elements is null ? default : _elements[i]; + public T this[int i] => _elements![i]; } } -- GitLab