Skip to content

Commit 88dbd1c

Browse files
Kahbazipranavkm
authored andcommitted
Use Result instead of GetAwaiter().GetResult() (#13614)
1 parent 1f6d235 commit 88dbd1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public Task Invoke(HttpContext context, ICorsPolicyProvider corsPolicyProvider)
181181
return InvokeCoreAwaited(context, policyTask);
182182
}
183183

184-
corsPolicy = policyTask.GetAwaiter().GetResult();
184+
corsPolicy = policyTask.Result;
185185
}
186186

187187
return EvaluateAndApplyPolicy(context, corsPolicy);

0 commit comments

Comments
 (0)