0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

timers: remove redundant code

PR-URL: https://github.com/iojs/io.js/pull/1330
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
Fedor Indutny 2015-04-03 02:28:45 +03:00
parent 6f72d87c27
commit 416499c872

View File

@ -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);
};