@@ -19,8 +19,7 @@ internal sealed class ApiProblemDetailsFactory : ProblemDetailsFactory, IProblem
1919 public ApiProblemDetailsFactory (
2020 IHttpContextAccessor httpContextAccessor ,
2121 IOptions < ApiBehaviorOptions > apiBehaviorOptions ,
22- IOptions < ErrorHandlerOptions > errorHandlerOptions
23- )
22+ IOptions < ErrorHandlerOptions > errorHandlerOptions )
2423 {
2524 _httpContextAccessor = httpContextAccessor ;
2625
@@ -51,8 +50,7 @@ public ErrorProblemDetails CreateProblem(
5150 int ? statusCode = null ,
5251 string title = null ,
5352 string type = null ,
54- IDictionary < string , ErrorDetails > errors = null
55- )
53+ IDictionary < string , ErrorDetails > errors = null )
5654 {
5755 errors ??= new Dictionary < string , ErrorDetails > ( ) ;
5856
@@ -117,17 +115,15 @@ internal ErrorProblemDetails Create(ActionContext actionContext)
117115
118116 return Create (
119117 actionContext . HttpContext ,
120- payloadTooLargeError
121- ) ;
118+ payloadTooLargeError ) ;
122119 }
123120
124121
125122 actionContext . HttpContext . Response . StatusCode = StatusCodes . Status400BadRequest ;
126123
127124 return Create (
128125 actionContext . HttpContext ,
129- actionContext . ModelState . MappingModelState ( )
130- ) ;
126+ actionContext . ModelState . MappingModelState ( ) ) ;
131127 }
132128
133129 public override ProblemDetails CreateProblemDetails (
@@ -136,8 +132,7 @@ public override ProblemDetails CreateProblemDetails(
136132 string title = null ,
137133 string type = null ,
138134 string detail = null ,
139- string instance = null
140- )
135+ string instance = null )
141136 {
142137 var problemDetails = new ProblemDetails
143138 {
@@ -160,8 +155,7 @@ public override ValidationProblemDetails CreateValidationProblemDetails(
160155 string title = null ,
161156 string type = null ,
162157 string detail = null ,
163- string instance = null
164- )
158+ string instance = null )
165159 {
166160 if ( modelStateDictionary == null )
167161 {
0 commit comments