Skip to content

Commit 07d2c04

Browse files
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>
1 parent 34e7f97 commit 07d2c04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public void BmpDecoder_ThrowsException_Issue3067()
589589

590590
using MemoryStream stream = new(bmp);
591591

592-
InvalidImageContentException ex = Assert.Throws<InvalidImageContentException>(() =>
592+
Assert.Throws<InvalidImageContentException>(() =>
593593
{
594594
using Image image = BmpDecoder.Instance.Decode(DecoderOptions.Default, stream);
595595
});

0 commit comments

Comments
 (0)