File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Original file line number Diff line number Diff line change @@ -144,8 +144,12 @@ PoolCluster.prototype.getConnection = function(pattern, selector, cb) {
144
144
namespace . getConnection ( cb ) ;
145
145
} ;
146
146
147
+ PoolCluster . prototype . _clearFindCaches = function _clearFindCaches ( ) {
148
+ this . _findCaches = Object . create ( null ) ;
149
+ } ;
150
+
147
151
PoolCluster . prototype . _findNodeIds = function ( pattern ) {
148
- if ( typeof this . _findCaches [ pattern ] !== ' undefined' ) {
152
+ if ( this . _findCaches [ pattern ] !== undefined ) {
149
153
return this . _findCaches [ pattern ] ;
150
154
}
151
155
@@ -214,10 +218,6 @@ PoolCluster.prototype._getConnection = function(node, cb) {
214
218
} ) ;
215
219
} ;
216
220
217
- PoolCluster . prototype . _clearFindCaches = function ( ) {
218
- this . _findCaches = { } ;
219
- } ;
220
-
221
221
/**
222
222
* PoolNamespace
223
223
*/
You can’t perform that action at this time.
0 commit comments