fix return shadowing

This commit is contained in:
Andy Wang 2020-04-05 00:39:59 +01:00
parent e4da349aa0
commit 6d75aaff01

View File

@ -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