Permalink
Browse files

removed more commented out code

  • Loading branch information...
christkv committed Apr 1, 2012
1 parent 30ba06f commit 445d0bb87bd2cafea58491ab68c8083c0910bc0c
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mongodb/connection/repl_set.js
@@ -831,15 +831,15 @@ ReplSet.prototype.connect = function(parent, options, callback) {
replSetSelf.close();
// Perform callback
internalCallback(new Error("no secondary server found"), null);
- } else if(typeof callback === 'function'){
+ } else if(typeof callback === 'function') {
replSetSelf._serverState = 'disconnected';
// ensure no callbacks get called twice
var internalCallback = callback;
callback = null;
// Force close all server instances
replSetSelf.close();
// Perform callback
- internalCallback(new Error("no primary server found"), null);
+ internalCallback(new Error("no primary server found"), null);
}
} else if((self._numberOfServersLeftToInitialize == 0) && replSetSelf._state.errorMessages.length > 0 && replSetSelf._serverState != 'disconnected') {
// Set done

0 comments on commit 445d0bb

Please sign in to comment.