Skip to content

Commit

Permalink
Fix typo on session.remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Feb 27, 2012
1 parent 86f8e36 commit 282347a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sessions.js
Expand Up @@ -251,7 +251,7 @@ function buildSessionUtils(uid, meta, data, store, expires, sessions) {
},
remove: function () {
var args = [ uid ].concat(Array.prototype.slice.apply(arguments));
if (typeof args[arg.length - 1] != "function") {
if (typeof args[args.length - 1] != "function") {
args.push(function () {});
}

Expand Down

0 comments on commit 282347a

Please sign in to comment.