You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Fix individual createClient functions passing undefined options to a new instance. Closes #893
This commit is contained in:
2
index.js
2
index.js
@@ -36,7 +36,7 @@ parsers.push(require('./lib/parsers/javascript'));
|
||||
|
||||
function RedisClient(stream, options) {
|
||||
// Copy the options so they are not mutated
|
||||
options = JSON.parse(JSON.stringify(options));
|
||||
options = JSON.parse(JSON.stringify(options || {}));
|
||||
var self = this;
|
||||
|
||||
if (!stream.cork) {
|
||||
|
Reference in New Issue
Block a user