1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +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

@@ -67,8 +67,10 @@ function RedisClient (options, stream) {
options.detectBuffers = !!options.detectBuffers
// Override the detectBuffers setting if returnBuffers is active and print a warning
if (options.returnBuffers && options.detectBuffers) {
process.nextTick(() =>
utils.warn(this, 'WARNING: You activated returnBuffers and detectBuffers at the same time. The return value is always going to be a buffer.')
process.nextTick(
utils.warn,
this,
'WARNING: You activated returnBuffers and detectBuffers at the same time. The return value is always going to be a buffer.'
)
options.detectBuffers = false
}