From 8a76f8d580a6ffc1661b93c332ba4bf6b9e7f20d Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Thu, 24 Oct 2019 20:36:42 +0800 Subject: Fix a bug in auth handler. This is caused by my confusion in C# language. --- Timeline/Authentication/AuthHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Timeline/Authentication/AuthHandler.cs') diff --git a/Timeline/Authentication/AuthHandler.cs b/Timeline/Authentication/AuthHandler.cs index 47ed1d71..602a44db 100644 --- a/Timeline/Authentication/AuthHandler.cs +++ b/Timeline/Authentication/AuthHandler.cs @@ -88,7 +88,7 @@ namespace Timeline.Authentication return AuthenticateResult.Success(new AuthenticationTicket(principal, AuthConstants.Scheme)); } - catch (Exception e) when (e! is ArgumentException) + catch (Exception e) when (!(e is ArgumentException)) { _logger.LogInformation(e, Resources.Authentication.AuthHandler.LogTokenValidationFail); return AuthenticateResult.Fail(e); -- cgit v1.2.3