Skip to content
Prev Previous commit
Next Next commit
fixup: remove assert
  • Loading branch information
Trott committed Sep 26, 2015
commit 62a05d1bdeb1530314bdcfef1c73ec7171664088
2 changes: 0 additions & 2 deletions lib/timers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const Timer = process.binding('timer_wrap').Timer;
const assert = require('assert').ok;
const util = require('util');
const debug = util.debuglog('timer');
const kOnTimeout = Timer.kOnTimeout | 0;
Expand Down Expand Up @@ -587,7 +586,6 @@ function unrefTimeout() {
exports._unrefActive = function(item) {
var msecs = item._idleTimeout;
if (!msecs || msecs < 0) return;
assert(msecs >= 0);

if (lists[msecs]) {
lists[msecs].delete(item);
Expand Down