Remove null check for logger in HttpsConnectionMiddleware

This commit is contained in:
Kahbazi 2019-11-17 19:01:48 +03:30 committed by Chris Ross
parent 426a70c450
commit eec2ce4a71
1 changed files with 2 additions and 2 deletions

View File

@ -224,11 +224,11 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Https.Internal
!CertificateManager.IsHttpsDevelopmentCertificate(_serverCertificate) ||
CertificateManager.CheckDeveloperCertificateKey(_serverCertificate))
{
_logger?.LogDebug(1, ex, CoreStrings.AuthenticationFailed);
_logger.LogDebug(1, ex, CoreStrings.AuthenticationFailed);
}
else
{
_logger?.LogError(3, ex, CoreStrings.BadDeveloperCertificateState);
_logger.LogError(3, ex, CoreStrings.BadDeveloperCertificateState);
}
await sslStream.DisposeAsync();