Skip to content

Commit 416499c

Browse files
committed
timers: remove redundant code
PR-URL: #1330 Reviewed-by: Trevor Norris <[email protected]>
1 parent 6f72d87 commit 416499c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/timers.js

+2-9
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)