From 9594e99e679cd338293f182ba4f8126246f3204c Mon Sep 17 00:00:00 2001 From: Alec Date: Tue, 1 Feb 2022 20:52:55 -0700 Subject: [PATCH] Cleanup redundant section of code --- cli/up.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cli/up.go b/cli/up.go index 93d816e..d4d4c9a 100644 --- a/cli/up.go +++ b/cli/up.go @@ -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])