Skip to content

Commit

Permalink
shorter var statement
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Calado <luisfmcalado@gmail.com>
  • Loading branch information
luisfmcalado committed Jun 10, 2020
1 parent 63e2186 commit 2c8bbcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/mysql/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ func (c *Conn) handleNextCommand(handler Handler) error {
prepare.BindVars = make(map[string]*querypb.BindVariable, paramsCount)
}

var bindVars = make(map[string]*querypb.BindVariable, paramsCount)
bindVars := make(map[string]*querypb.BindVariable, paramsCount)
for i := uint16(0); i < paramsCount; i++ {
parameterID := fmt.Sprintf("v%d", i+1)
bindVars[parameterID] = &querypb.BindVariable{}
Expand Down

0 comments on commit 2c8bbcc

Please sign in to comment.