Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Odd Stråbø
2021-03-29 00:46:19 +02:00
parent afff226514
commit e0edbc5754
2 changed files with 2 additions and 7 deletions

View File

@@ -97,12 +97,7 @@ namespace MediaBrowser.Controller.Drawing
return false;
}
if (FillWidth.HasValue && sizeValue.Width > FillWidth.Value)
{
return false;
}
if (FillHeight.HasValue && sizeValue.Height > FillHeight.Value)
if (sizeValue.Width > FillWidth || sizeValue.Height > FillHeight)
{
return false;
}