You've already forked node-redis
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:
6
index.js
6
index.js
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user