Browse Source

Potential fix for pull request finding 'Poor error handling: empty catch block'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
pull/3119/head
James Jackson-South 3 weeks ago
committed by GitHub
parent
commit
4abf307ca6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/ImageSharp/Formats/ImageDecoderCore.cs

2
src/ImageSharp/Formats/ImageDecoderCore.cs

@ -56,6 +56,7 @@ internal abstract class ImageDecoderCore
or InvalidOperationException
or NotSupportedException)
{
// Intentionally ignored in non-strict segment integrity modes.
}
}
@ -82,6 +83,7 @@ internal abstract class ImageDecoderCore
or InvalidOperationException
or NotSupportedException)
{
// Intentionally ignored when image data integrity handling is set to IgnoreImageData.
}
}

Loading…
Cancel
Save