소스 검색

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)