From cd33eb4f166ac00b92ae4d3cec42a99420bfb224 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Fri, 26 Apr 2024 15:29:02 +0100 Subject: [PATCH] style: merging if statements --- Assets/Mirage/Runtime/NetworkServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirage/Runtime/NetworkServer.cs b/Assets/Mirage/Runtime/NetworkServer.cs index 589d803b58..e78a88d889 100644 --- a/Assets/Mirage/Runtime/NetworkServer.cs +++ b/Assets/Mirage/Runtime/NetworkServer.cs @@ -396,8 +396,8 @@ private async UniTaskVoid AuthenticateAsync(INetworkPlayer player) public void SetAuthenticationFailedCallback(Action callback) { - if (_authFallCallback != null && callback != null) - if (logger.WarnEnabled()) logger.LogWarning($"Replacing old callback. Only 1 auth failed callback can be used at once"); + if (_authFallCallback != null && callback != null && logger.WarnEnabled()) + logger.LogWarning($"Replacing old callback. Only 1 auth failed callback can be used at once"); _authFallCallback = callback; }