Remove unnecessary casts and explicit array types

This commit is contained in:
Patrick Barron
2020-04-05 13:00:35 -04:00
parent 86c06996b1
commit 80cfcf5643
7 changed files with 20 additions and 20 deletions

View File

@@ -650,7 +650,7 @@ namespace MediaBrowser.Api.Images
if (!string.IsNullOrWhiteSpace(request.Format)
&& Enum.TryParse(request.Format, true, out ImageFormat format))
{
return new ImageFormat[] { format };
return new[] { format };
}
return GetClientSupportedFormats();