Resolve CA1508

This commit is contained in:
JustArchi
2021-05-07 16:49:02 +02:00
parent 377df12924
commit 90ff43dc98
9 changed files with 15 additions and 2 deletions

View File

@@ -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;
}