1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

chore: use short handle for process.nextTick

This commit is contained in:
Ruben Bridgewater
2017-05-28 04:32:29 +02:00
parent 0d53d3dcdf
commit b837b46e76
7 changed files with 17 additions and 27 deletions

View File

@@ -103,9 +103,7 @@ function replyInOrder (client, callback, err, res, queue) {
commandObj = client.offlineQueue.peekBack() || client.commandQueue.peekBack()
}
if (!commandObj) {
process.nextTick(() => {
callback(err, res)
})
process.nextTick(callback, err, res)
} else {
const tmp = commandObj.callback
commandObj.callback = function (e, r) {