From 07d2c04bf19b4698b6aca9b9bb4d4a33ba0f7622 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 6 Mar 2026 14:51:01 +1000 Subject: [PATCH] Potential fix for pull request finding 'Useless assignment to local variable' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs index 9487c4ce9a..6ebe1bf4e0 100644 --- a/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs @@ -589,7 +589,7 @@ public class BmpDecoderTests using MemoryStream stream = new(bmp); - InvalidImageContentException ex = Assert.Throws(() => + Assert.Throws(() => { using Image image = BmpDecoder.Instance.Decode(DecoderOptions.Default, stream); });