Skip to content

Commit

Permalink
A minor negation in GetDelay to make it more readable #1419
Browse files Browse the repository at this point in the history
  • Loading branch information
iPazooki authored and kzu committed Sep 20, 2023
1 parent d702a5e commit 8e46ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Moq/ReturnsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ static TimeSpan GetDelay(TimeSpan minDelay, TimeSpan maxDelay, Random random)

static TimeSpan GetDelay(TimeSpan minDelay, TimeSpan maxDelay, Random random)
{
if (!(minDelay < maxDelay))
if (minDelay >= maxDelay)
throw new ArgumentException(Resources.MinDelayMustBeLessThanMaxDelay);

var min = (int)minDelay.Ticks;
Expand Down

0 comments on commit 8e46ab8

Please sign in to comment.