From 6d75aaff01522813cdff1d9cb9a09745349c04be Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Sun, 5 Apr 2020 00:39:59 +0100 Subject: [PATCH] fix return shadowing --- internal/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/util.go b/internal/util/util.go index 8105ed5..bb33f49 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -89,7 +89,7 @@ func ReadTLS(conn net.Conn, buffer []byte) (n int, err error) { i, err := conn.Read(buffer[readPtr : readPtr+left]) if err != nil { - return + return i, err } left -= i readPtr += i