Skip to content

Commit d6f24ca

Browse files
committed
Remove redundant argument swapping
This conversion occurs inside connection.execute and does not need to be performed here. Doing it here actually breaks passing an options object instead of a query.
1 parent fd6b2be commit d6f24ca

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/pool.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ Pool.prototype.query = function (sql, values, cb) {
145145
};
146146

147147
Pool.prototype.execute = function (sql, values, cb) {
148-
if (typeof values === 'function') {
149-
cb = values;
150-
values = null;
151-
}
152-
153148
var useNamedPlaceholders = this.config.connectionConfig.namedPlaceholders;
154149

155150
this.getConnection(function (err, conn) {

0 commit comments

Comments
 (0)