Skip to content

Commit 452571b

Browse files
committed
timers: remove redundant code
1 parent ca615ac commit 452571b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/timers.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,8 @@ exports.enroll = function(item, msecs) {
157157
// it will reset its timeout.
158158
exports.active = function(item) {
159159
var msecs = item._idleTimeout;
160-
if (msecs >= 0) {
161-
var list = lists[msecs];
162-
if (!list || L.isEmpty(list)) {
163-
insert(item, msecs);
164-
} else {
165-
item._idleStart = Timer.now();
166-
L.append(list, item);
167-
}
168-
}
160+
if (msecs >= 0)
161+
insert(item, msecs);
169162
};
170163

171164

0 commit comments

Comments
 (0)