Remove ConfigureAwait(false) when there is no await (#13897)

This commit is contained in:
Kahbazi 2019-09-20 01:09:07 +04:30 committed by Justin Kotalik
parent c74e9efd0e
commit b759d3d7c3
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ namespace Microsoft.AspNetCore.Hosting
public void Dispose()
{
DisposeAsync().ConfigureAwait(false).GetAwaiter().GetResult();
DisposeAsync().GetAwaiter().GetResult();
}
public async ValueTask DisposeAsync()

View File

@ -76,7 +76,7 @@ namespace Microsoft.AspNetCore.Http.Features
public void Dispose()
{
DisposeAsync().ConfigureAwait(false).GetAwaiter().GetResult();
DisposeAsync().GetAwaiter().GetResult();
}
}
}