Permalink
Browse files

* Formatting.

  • Loading branch information...
1 parent 7da80bc commit 45d076035b0edb6d6dc80cc9b6752dfdecc89891 @kcbanner kcbanner committed Apr 25, 2012
Showing with 9 additions and 7 deletions.
  1. +9 −7 lib/connect-mongo.js
View
@@ -80,16 +80,18 @@ module.exports = function(connect) {
}
this.db = new mongo.Db(options.db,
- new mongo.Server(options.host || defaultOptions.host,
- options.port || defaultOptions.port,
- {
- auto_reconnect: options.auto_reconnect ||
- defaultOptions.auto_reconnect
- }));
+ new mongo.Server(
+ options.host || defaultOptions.host,
+ options.port || defaultOptions.port,
+ {
+ auto_reconnect: options.auto_reconnect ||
+ defaultOptions.auto_reconnect
+ }));
this.db_collection_name = options.collection || defaultOptions.collection;
- if (options.hasOwnProperty('stringify') ? options.stringify : defaultOptions.stringify) {
+ if (options.hasOwnProperty('stringify') ?
+ options.stringify : defaultOptions.stringify) {
this._serialize_session = JSON.stringify;
this._unserialize_session = JSON.parse;
} else {

0 comments on commit 45d0760

Please sign in to comment.