From fbd3e951c41f2f3841875dfebbc33487ff988b49 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 27 Aug 2023 03:47:58 +0100 Subject: [PATCH] fix: discard Repeat return value --- X10D.Tests/src/Text/CharTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X10D.Tests/src/Text/CharTests.cs b/X10D.Tests/src/Text/CharTests.cs index 5ac8840..cc6d941 100644 --- a/X10D.Tests/src/Text/CharTests.cs +++ b/X10D.Tests/src/Text/CharTests.cs @@ -51,6 +51,6 @@ internal class CharTests [Test] public void RepeatNegativeCountShouldThrow() { - Assert.Throws(() => 'a'.Repeat(-1)); + Assert.Throws(() => _ = 'a'.Repeat(-1)); } }