Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
pull/5556/head
Odd Stråbø 3 years ago
parent afff226514
commit e0edbc5754

@ -274,7 +274,7 @@ namespace Emby.Drawing
string backgroundColor,
string foregroundLayer)
{
System.Text.StringBuilder filename = new System.Text.StringBuilder(128);
var filename = new StringBuilder(128);
filename.Append(originalPath);
filename.Append(",quality=");

@ -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;
}

Loading…
Cancel
Save