Skip to content

Commit 1144c88

Browse files
committed
Eliminate redundant code in Range.
1 parent c4c86aa commit 1144c88

File tree

1 file changed

+1
-1
lines changed
  • Ix.NET/Source/System.Linq.Async/System/Linq/Operators

1 file changed

+1
-1
lines changed

Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Range.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static IAsyncEnumerable<int> Range(int start, int count)
1717
throw Error.ArgumentOutOfRange(nameof(count));
1818

1919
var end = (long)start + count - 1L;
20-
if (count < 0 || end > int.MaxValue)
20+
if (end > int.MaxValue)
2121
throw Error.ArgumentOutOfRange(nameof(count));
2222

2323
if (count == 0)

0 commit comments

Comments
 (0)