From c30b81169ea76416c05b14d43f40c5a5a9bfd553 Mon Sep 17 00:00:00 2001 From: Chris Yeninas <844685+PhantomGamers@users.noreply.github.com> Date: Wed, 5 Jun 2024 08:12:14 -0400 Subject: [PATCH] Update NgrokManager.cs --- NebulaNetwork/Ngrok/NgrokManager.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/NebulaNetwork/Ngrok/NgrokManager.cs b/NebulaNetwork/Ngrok/NgrokManager.cs index d09bc5302..fc1b11da8 100644 --- a/NebulaNetwork/Ngrok/NgrokManager.cs +++ b/NebulaNetwork/Ngrok/NgrokManager.cs @@ -265,10 +265,7 @@ private void ErrorDataReceivedEventHandler(object sender, DataReceivedEventArgs "ERR_NGROK_123" => "Account email not verified".Translate(), _ => string.Empty }; - if (!string.IsNullOrWhiteSpace(NgrokLastErrorCodeDesc)) - { - NgrokLastErrorCodeDesc = $"({NgrokLastErrorCodeDesc})"; - } + NgrokLastErrorCodeDesc = !string.IsNullOrWhiteSpace(NgrokLastErrorCodeDesc) ? $"({NgrokLastErrorCodeDesc})" : string.Empty; Log.WarnInform(string.Format("Ngrok Error! Code: {0} {1}".Translate(), NgrokLastErrorCode, NgrokLastErrorCodeDesc)); }