mirror of
https://github.com/Readarr/Readarr
synced 2026-01-07 16:13:05 +01:00
Prevent error for MinOrDefault.
Fixed: Issue with episode searching
This commit is contained in:
parent
fb74a1a6a7
commit
a42d90f22c
1 changed files with 3 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue