Skip to content

Commit 6053ce3

Browse files
committed
Remove unnecessary CA2022 suppressions
1 parent c466e3b commit 6053ce3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/RazorSdk/Tool/Client.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ public override async Task WaitForDisconnectAsync(CancellationToken cancellation
171171
try
172172
{
173173
ServerLogger.Log($"Before poking pipe {Identifier}.");
174-
#pragma warning disable CA2022 // Avoid inexact read
175-
await Stream.ReadAsync(Array.Empty<byte>(), 0, 0, cancellationToken);
176-
#pragma warning restore CA2022
174+
_ = await Stream.ReadAsync(Array.Empty<byte>(), 0, 0, cancellationToken);
177175
ServerLogger.Log($"After poking pipe {Identifier}.");
178176
}
179177
catch (OperationCanceledException)

src/RazorSdk/Tool/ConnectionHost.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ public override async Task WaitForDisconnectAsync(CancellationToken cancellation
107107
try
108108
{
109109
ServerLogger.Log($"Before poking pipe {Identifier}.");
110-
#pragma warning disable CA2022 // Avoid inexact read
111-
await Stream.ReadAsync(Array.Empty<byte>(), 0, 0, cancellationToken);
112-
#pragma warning restore CA2022
110+
_ = await Stream.ReadAsync(Array.Empty<byte>(), 0, 0, cancellationToken);
113111
ServerLogger.Log($"After poking pipe {Identifier}.");
114112
}
115113
catch (OperationCanceledException)

0 commit comments

Comments
 (0)