Skip to content

Commit

Permalink
use Infinity to improve performance and semantics (eggjs#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cai authored and popomore committed Sep 5, 2016
1 parent 998bedf commit 47739b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/level.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

exports.ALL = -100000;
exports.ALL = -Infinity;

/**
* Debug log for execute tracing
Expand Down Expand Up @@ -31,4 +31,4 @@ exports.WARN = 2;
*/
exports.ERROR = 3;

exports.NONE = 100000;
exports.NONE = Infinity;

0 comments on commit 47739b0

Please sign in to comment.