Skip to content

Commit

Permalink
logic error, should be < and not >
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrumins committed Oct 8, 2010
1 parent 53b10d8 commit fbdedcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Cart(options) {
self.db = db;
db.filter(
function (key, item) {
return item.lastAccess > Date.now() - options.maxAge;
return item.lastAccess < Date.now() - options.maxAge;
},
function (key, item) {
db.remove(key);
Expand Down

0 comments on commit fbdedcd

Please sign in to comment.