mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-06 14:55:19 -04:00
More scanner improvements, up to 50% off (#4243)
Co-authored-by: majora2007 <josephmajora@gmail.com>
This commit is contained in:
@@ -69,4 +69,10 @@ public static class EnumerableExtensions
|
||||
|
||||
return q;
|
||||
}
|
||||
|
||||
public static IEnumerable<TSource> WhereNotNull<TSource>(this IEnumerable<TSource?> source)
|
||||
where TSource : class
|
||||
{
|
||||
return source.Where(item => item != null)!;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user