Skip to content

Commit

Permalink
timers: remove redundant code
Browse files Browse the repository at this point in the history
PR-URL: #1330
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
indutny committed Apr 3, 2015
1 parent 6f72d87 commit 416499c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,8 @@ exports.enroll = function(item, msecs) {
// it will reset its timeout.
exports.active = function(item) {
var msecs = item._idleTimeout;
if (msecs >= 0) {
var list = lists[msecs];
if (!list || L.isEmpty(list)) {
insert(item, msecs);
} else {
item._idleStart = Timer.now();
L.append(list, item);
}
}
if (msecs >= 0)
insert(item, msecs);
};


Expand Down

0 comments on commit 416499c

Please sign in to comment.