From ee987c6ad2168801a1f7ffa65a12446688c495d1 Mon Sep 17 00:00:00 2001 From: Andrew Laptev Date: Mon, 18 Mar 2013 21:06:13 +0400 Subject: [PATCH] Removed redundant anonymous function --- lib/connect-mongodb.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/connect-mongodb.js b/lib/connect-mongodb.js index dd477f1..8b98c4e 100644 --- a/lib/connect-mongodb.js +++ b/lib/connect-mongodb.js @@ -143,9 +143,7 @@ MONGOSTORE.prototype.set = function (sid, sess, cb) { update.expires = Date.parse(sess.cookie.expires); } - _collection.update({_id: sid}, update, {upsert: true}, function (err, data) { - cb.apply(this, arguments); - }); + _collection.update({_id: sid}, update, {upsert: true}, _default(cb)); }; /**