Small perf improvement in LINQ

This commit is contained in:
Antony Corbett
2023-02-12 14:01:41 +00:00
parent 30bd7420e2
commit e1e5778ff0
@@ -39,7 +39,7 @@ namespace QuestPDF.Infrastructure
public DocumentLocation? GetLocation(string name)
{
return Locations.FirstOrDefault(x => x.Name == name);
return Locations.Find(x => x.Name == name);
}
}
}