mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Merge branch 'dev' into code-cleanup
This commit is contained in:
@@ -12,17 +12,17 @@ namespace Rssdp.Infrastructure
|
||||
if (source == null) throw new ArgumentNullException(nameof(source));
|
||||
if (selector == null) throw new ArgumentNullException(nameof(selector));
|
||||
|
||||
return !source.Any() ? source :
|
||||
source.Concat(
|
||||
source
|
||||
.SelectMany(i => selector(i).EmptyIfNull())
|
||||
.SelectManyRecursive(selector)
|
||||
);
|
||||
}
|
||||
return !source.Any() ? source :
|
||||
source.Concat(
|
||||
source
|
||||
.SelectMany(i => selector(i).EmptyIfNull())
|
||||
.SelectManyRecursive(selector)
|
||||
);
|
||||
}
|
||||
|
||||
public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T> source)
|
||||
{
|
||||
return source ?? Enumerable.Empty<T>();
|
||||
}
|
||||
}
|
||||
public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T> source)
|
||||
{
|
||||
return source ?? Enumerable.Empty<T>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user