79317456

Date: 2024-12-30 11:26:47
Score: 0.5
Natty:
Report link

    if (items == null || items == Enumerable.Empty<TagOrIdItem>() || !items.Any())
    {
        return Enumerable.Empty<T>().AsQueryable();
    }

Add a null check and validate items as being empty or no Any() in enumerable item Otherwise Null Exception from .Any().

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Harshini