Skip to content

Commit 82d3906

Browse files
committed
Removed Guard from ImageFormatManager.TryFindFormatByFileExtension
1 parent 6ec1692 commit 82d3906

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/ImageSharp/Formats/ImageFormatManager.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ public void AddImageFormat(IImageFormat format)
102102
/// <returns><see langword="true"/> if a match is found; otherwise, <see langword="false"/></returns>
103103
public bool TryFindFormatByFileExtension(string extension, [NotNullWhen(true)] out IImageFormat? format)
104104
{
105-
Guard.NotNullOrWhiteSpace(extension, nameof(extension));
106-
107105
if (extension[0] == '.')
108106
{
109107
extension = extension[1..];

0 commit comments

Comments
 (0)