Remove null check for setupAction

there is already one which throws an ArgumentNullException
This commit is contained in:
campersau 2016-08-26 16:48:50 +02:00 committed by jacalvar
parent 6d235e4ef5
commit f3ba776257
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}