From 1819d8eea6d4cc7b01748d61b70ee747c13ffae8 Mon Sep 17 00:00:00 2001 From: Archangel Date: Tue, 8 Oct 2024 19:53:56 +0200 Subject: [PATCH] Run cleanup --- Fika.Core/Networking/Websocket/FikaNotificationManager.cs | 6 +++--- .../Networking/Websocket/Notifications/PushNotification.cs | 1 - Fika.Core/UI/Patches/TarkovApplication_method_18_Patch.cs | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Fika.Core/Networking/Websocket/FikaNotificationManager.cs b/Fika.Core/Networking/Websocket/FikaNotificationManager.cs index df188a2a..f53679dd 100644 --- a/Fika.Core/Networking/Websocket/FikaNotificationManager.cs +++ b/Fika.Core/Networking/Websocket/FikaNotificationManager.cs @@ -118,7 +118,7 @@ private void WebSocket_OnMessage(object sender, MessageEventArgs e) case EFikaNotifications.StartedRaid: StartRaidNotification startRaidNotification = e.Data.ParseJsonTo(Array.Empty()); - if(FikaGlobals.IsInRaid()) + if (FikaGlobals.IsInRaid()) { return; } @@ -129,7 +129,7 @@ private void WebSocket_OnMessage(object sender, MessageEventArgs e) ReceivedSentItemNotification SentItemNotification = e.Data.ParseJsonTo(Array.Empty()); // If we are not the target, ignore. - if(SentItemNotification.TargetId != SessionId) + if (SentItemNotification.TargetId != SessionId) { return; } @@ -150,7 +150,7 @@ private IEnumerator ReconnectWebSocket() while (true) { - if(_webSocket.ReadyState == WebSocketState.Open) + if (_webSocket.ReadyState == WebSocketState.Open) { break; } diff --git a/Fika.Core/Networking/Websocket/Notifications/PushNotification.cs b/Fika.Core/Networking/Websocket/Notifications/PushNotification.cs index eb1e2389..db43fa42 100644 --- a/Fika.Core/Networking/Websocket/Notifications/PushNotification.cs +++ b/Fika.Core/Networking/Websocket/Notifications/PushNotification.cs @@ -1,6 +1,5 @@ using EFT.Communications; using Newtonsoft.Json; -using System; namespace Fika.Core.Networking.Websocket.Notifications { diff --git a/Fika.Core/UI/Patches/TarkovApplication_method_18_Patch.cs b/Fika.Core/UI/Patches/TarkovApplication_method_18_Patch.cs index 30ed2741..3f75d498 100644 --- a/Fika.Core/UI/Patches/TarkovApplication_method_18_Patch.cs +++ b/Fika.Core/UI/Patches/TarkovApplication_method_18_Patch.cs @@ -1,9 +1,9 @@ -using EFT; +using Comfort.Common; +using EFT; +using EFT.UI; using Fika.Core.Networking.Websocket; using SPT.Reflection.Patching; using System.Reflection; -using Comfort.Common; -using EFT.UI; namespace Fika.Core.UI.Patches {