You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
chore: remove let due to performance reasons
This commit is contained in:
@@ -90,7 +90,7 @@ function execTransaction (multi) {
|
||||
// Silently ignore this error. We'll receive the error for the exec as well
|
||||
const promises = [multi._client.internalSendCommand(new Command('multi', [])).catch(() => {})]
|
||||
// Drain queue, callback will catch 'QUEUED' or error
|
||||
for (let index = 0; index < len; index++) {
|
||||
for (var index = 0; index < len; index++) {
|
||||
// The commands may not be shifted off, since they are needed in the result handler
|
||||
promises.push(pipelineTransactionCommand(multi, multi._queue.get(index), index).catch((e) => e))
|
||||
}
|
||||
@@ -156,7 +156,7 @@ class Multi {
|
||||
// Either undefined or an array. Fail hard if it's not an array
|
||||
if (args) {
|
||||
// Legacy support for passing in an array of arguments
|
||||
for (let i = 0; i < args.length; i++) {
|
||||
for (var i = 0; i < args.length; i++) {
|
||||
const command = args[i][0]
|
||||
const tmpArgs = args[i].slice(1)
|
||||
if (Array.isArray(command)) {
|
||||
|
Reference in New Issue
Block a user