Skip to content

Commit df29077

Browse files
committed
refactor: 更改代码提高代码覆盖率
1 parent ee860c1 commit df29077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Services/TcpSocket/DefaultSocketClientProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public async ValueTask<bool> ConnectAsync(IPEndPoint endPoint, CancellationToken
5050
public async ValueTask<bool> SendAsync(ReadOnlyMemory<byte> data, CancellationToken token = default)
5151
{
5252
var ret = false;
53-
if (_client is { Connected: true })
53+
if (_client != null)
5454
{
5555
var stream = _client.GetStream();
5656
await stream.WriteAsync(data, token);

0 commit comments

Comments
 (0)