浏览代码

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)