Skip to content

Commit 960f7f6

Browse files
committed
Minor refactoring.
1 parent d703263 commit 960f7f6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/Magick.NET.Tests/MagickFormatInfoTests/TheCreateMethod.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,8 @@ private static bool ShouldReport(MagickFormat format)
212212
if (IsDisabledThroughPolicy(format))
213213
return false;
214214

215-
if (!Runtime.IsWindows)
216-
{
217-
if (format == MagickFormat.Clipboard || format == MagickFormat.Emf || format == MagickFormat.Wmf)
218-
return false;
219-
}
215+
if ((format == MagickFormat.Clipboard || format == MagickFormat.Emf || format == MagickFormat.Wmf) && !Runtime.IsWindows)
216+
return false;
220217

221218
return true;
222219
}

0 commit comments

Comments
 (0)