Skip to content

Commit

Permalink
fix: discard Repeat return value
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Aug 27, 2023
1 parent c6dbc4c commit fbd3e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion X10D.Tests/src/Text/CharTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public void RepeatZeroCountShouldBeEmpty()
[Test]
public void RepeatNegativeCountShouldThrow()
{
Assert.Throws<ArgumentOutOfRangeException>(() => 'a'.Repeat(-1));
Assert.Throws<ArgumentOutOfRangeException>(() => _ = 'a'.Repeat(-1));
}
}

0 comments on commit fbd3e95

Please sign in to comment.