Skip to content

Commit

Permalink
style: merging if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Apr 26, 2024
1 parent dc4d6e6 commit cd33eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mirage/Runtime/NetworkServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ private async UniTaskVoid AuthenticateAsync(INetworkPlayer player)

public void SetAuthenticationFailedCallback(Action<INetworkPlayer, AuthenticationResult> 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;
}
Expand Down

0 comments on commit cd33eb4

Please sign in to comment.