Skip to content
Browse files

removed more commented out code

  • Loading branch information...
1 parent 30ba06f commit 445d0bb87bd2cafea58491ab68c8083c0910bc0c @christkv committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mongodb/connection/repl_set.js
View
4 lib/mongodb/connection/repl_set.js
@@ -831,7 +831,7 @@ 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;
@@ -839,7 +839,7 @@ ReplSet.prototype.connect = function(parent, options, callback) {
// 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.
Something went wrong with that request. Please try again.