Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Commit 34e61ad

Browse files
committed
refactor: inline Connected()
1 parent 0dd6a28 commit 34e61ad

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

TcpClient.vb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ Public Class TcpClient
3030

3131

3232
Public Function Report() As Boolean
33-
Return Not Connected() Or Command(_reportCmd).Take(_reportCmd.Length).SequenceEqual(_reportCmd)
34-
End Function
35-
36-
Private Function Connected() As Boolean
37-
Return _tcpClient.Connected
33+
Return Not _tcpClient.Connected Or Command(_reportCmd).Take(_reportCmd.Length).SequenceEqual(_reportCmd)
3834
End Function
3935

4036
Private Function Command(cmd As Byte()) As Byte()

0 commit comments

Comments
 (0)