Avoid pointless recursive call

alloc-reduction
Jack Christensen 2016-04-30 12:58:36 -05:00
parent 6e2cee6294
commit 932a4d6533
1 changed files with 0 additions and 1 deletions

View File

@ -463,7 +463,6 @@ func (c *Conn) Query(sql string, args ...interface{}) (*Rows, error) {
func (c *Conn) getRows(sql string, args []interface{}) *Rows { func (c *Conn) getRows(sql string, args []interface{}) *Rows {
if len(c.preallocatedRows) == 0 { if len(c.preallocatedRows) == 0 {
c.preallocatedRows = make([]Rows, 64) c.preallocatedRows = make([]Rows, 64)
return c.getRows(sql, args)
} }
r := &c.preallocatedRows[len(c.preallocatedRows)-1] r := &c.preallocatedRows[len(c.preallocatedRows)-1]