Remove null check for setupAction
there is already one which throws an ArgumentNullException
This commit is contained in:
parent
6d235e4ef5
commit
f3ba776257
|
|
@ -39,10 +39,7 @@ namespace Microsoft.Extensions.DependencyInjection
|
|||
|
||||
AddJsonFormatterServices(builder.Services);
|
||||
|
||||
if (setupAction != null)
|
||||
{
|
||||
builder.Services.Configure<MvcJsonOptions>((options) => setupAction(options.SerializerSettings));
|
||||
}
|
||||
builder.Services.Configure<MvcJsonOptions>((options) => setupAction(options.SerializerSettings));
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue