Skip to content

Commit c29c515

Browse files
committed
Clean up const variable that is no longer necessary
1 parent d78ba17 commit c29c515

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packets.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,7 @@ func (stmt *mysqlStmt) writeExecutePacket(args []driver.Value) error {
743743
var data []byte
744744

745745
if len(args) == 0 {
746-
const pktLen = 1 + 4 + 1 + 4
747-
data = mc.buf.takeBuffer(4 + pktLen)
746+
data = mc.buf.takeBuffer(4 + 1 + 4 + 1 + 4)
748747
} else {
749748
data = mc.buf.takeCompleteBuffer()
750749
}

0 commit comments

Comments
 (0)