mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-15 08:00:40 +00:00
Resolve CA1508
This commit is contained in:
@@ -152,7 +152,9 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
|
||||
}
|
||||
|
||||
try {
|
||||
#pragma warning disable CA1508 // False positive
|
||||
if (cancellationToken.IsCancellationRequested || (webSocket.State != WebSocketState.Open)) {
|
||||
#pragma warning restore CA1508 // False positive
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user