mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-25 06:43:34 +01:00
Fixed typos/style
This commit is contained in:
parent
fd56ceadd9
commit
e96ab03f81
@ -88,13 +88,11 @@ namespace Sieve.Services
|
||||
{
|
||||
try
|
||||
{
|
||||
var me = _map[typeof(TEntity)]
|
||||
return _map[typeof(TEntity)]
|
||||
.FirstOrDefault(kv =>
|
||||
kv.Value.Name.Equals(name, isCaseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase) &&
|
||||
(canSortRequired ? kv.Value.CanSort : true) &&
|
||||
(canFilterRequired ? kv.Value.CanFilter : true));
|
||||
|
||||
return me.Key;
|
||||
(canFilterRequired ? kv.Value.CanFilter : true)).Key;
|
||||
}
|
||||
catch (Exception ex) when (ex is KeyNotFoundException || ex is ArgumentNullException)
|
||||
{
|
||||
|
@ -11,7 +11,11 @@ namespace SieveUnitTests.Services
|
||||
{
|
||||
public class ApplicationSieveProcessor : SieveProcessor
|
||||
{
|
||||
public ApplicationSieveProcessor(IOptions<SieveOptions> options, ISieveCustomSortMethods customSortMethods, ISieveCustomFilterMethods customFilterMethods) : base(options, customSortMethods, customFilterMethods)
|
||||
public ApplicationSieveProcessor(
|
||||
IOptions<SieveOptions> options,
|
||||
ISieveCustomSortMethods customSortMethods,
|
||||
ISieveCustomFilterMethods customFilterMethods)
|
||||
: base(options, customSortMethods, customFilterMethods)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user