chore: code cleanup

This commit is contained in:
wwqgtxx
2023-01-16 12:11:34 +08:00
parent bec66e9e69
commit 4e4d741075
5 changed files with 0 additions and 15 deletions

View File

@ -56,8 +56,5 @@ func (c *BufferedConn) ReadBuffer(buffer *buf.Buffer) (err error) {
}
func (c *BufferedConn) Upstream() any {
if wrapper, ok := c.ExtendedConn.(*ExtendedConnWrapper); ok {
return wrapper.Conn
}
return c.ExtendedConn
}