We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba12e47 commit a7b0bfeCopy full SHA for a7b0bfe
lib/cluster.js
@@ -401,7 +401,7 @@ Cluster.prototype.executeClusterDownCommands = function () {
401
402
Cluster.prototype.to = function (name) {
403
var fnName = '_select' + name[0].toUpperCase() + name.slice(1);
404
- var fn = typeof this[fnName];
+ var fn = this[fnName];
405
if (typeof fn !== 'function') {
406
// programmatic error, can't happen in prod, so throw
407
throw new Error('to ' + name + ' is not a valid group of nodes');
0 commit comments