Remove unnecessary !s for [DoesNotReturn] (dotnet/coreclr#26512)
authorNext Turn <45985406+NextTurn@users.noreply.github.com>
Wed, 4 Sep 2019 18:22:25 +0000 (02:22 +0800)
committerStephen Toub <stoub@microsoft.com>
Wed, 4 Sep 2019 18:22:25 +0000 (14:22 -0400)
Commit migrated from https://github.com/dotnet/coreclr/commit/823f586da0bbcfba48dd0c456af8fddbb8f780d2

src/libraries/System.Private.CoreLib/src/System/Array.cs

index 260e414..d2b9aca 100644 (file)
@@ -1416,7 +1416,7 @@ namespace System
         {
             if (array == null)
                 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
-            Sort(array!, null, array!.GetLowerBound(0), array.Length, comparer);
+            Sort(array, null, array.GetLowerBound(0), array.Length, comparer);
         }
 
         // Sorts the elements of two arrays based on the keys in the first array.