فهرست منبع

Eliminate redundant code in Range.

Bart De Smet 6 سال پیش
والد
کامیت
1144c88c20
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Range.cs

+ 1 - 1
Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Range.cs

@@ -17,7 +17,7 @@ namespace System.Linq
                 throw Error.ArgumentOutOfRange(nameof(count));
 
             var end = (long)start + count - 1L;
-            if (count < 0 || end > int.MaxValue)
+            if (end > int.MaxValue)
                 throw Error.ArgumentOutOfRange(nameof(count));
 
             if (count == 0)