Remove pointless cast in Conn.Read (#942)

This was accidentally added in a recent PR.
This commit is contained in:
Tom Thorogood 2019-03-18 17:31:10 +10:30 committed by Miek Gieben
parent 1f99ca2fa4
commit bc7d5a495c
1 changed files with 1 additions and 2 deletions

View File

@ -270,8 +270,7 @@ func (co *Conn) Read(p []byte) (n int, err error) {
return 0, io.ErrShortBuffer
}
n, err := io.ReadFull(co.Conn, p[:length])
return int(n), err
return io.ReadFull(co.Conn, p[:length])
}
// UDP connection