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

Commit 9594e99

Browse files
committed
Cleanup redundant section of code
1 parent 20c306d commit 9594e99

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

cli/up.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,6 @@ func streamHandler(stream network.Stream) {
285285
return
286286
}
287287
size := binary.LittleEndian.Uint16(packetSize)
288-
if err != nil {
289-
stream.Close()
290-
return
291-
}
292288
var plen uint16 = 0
293289
for plen < size {
294290
tmp, err := stream.Read(packet[plen:size])

0 commit comments

Comments
 (0)