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

Commit

Permalink
Cleanup redundant section of code
Browse files Browse the repository at this point in the history
  • Loading branch information
alecbcs committed Feb 2, 2022
1 parent 20c306d commit 9594e99
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cli/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ func streamHandler(stream network.Stream) {
return
}
size := binary.LittleEndian.Uint16(packetSize)
if err != nil {
stream.Close()
return
}
var plen uint16 = 0
for plen < size {
tmp, err := stream.Read(packet[plen:size])
Expand Down

0 comments on commit 9594e99

Please sign in to comment.