1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 10:07:10 +00:00

Prevent error for MinOrDefault.

Fixed: Issue with episode searching
This commit is contained in:
Mark McDowall 2012-06-25 21:58:21 -07:00
parent fb74a1a6a7
commit a42d90f22c

View file

@ -145,6 +145,9 @@ public static string ToBestFileSize(this long bytes, int precision = 0)
public static int MinOrDefault(this IEnumerable<int> ints)
{
if (ints == null)
return 0;
var intsList = ints.ToList();
if (!intsList.Any())