Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Apr 10, 2015
1 parent 00e088c commit 74cde12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var Node = (function () {
Node.prototype.findEdge = function findEdge(c) {
var i = 0;
var l = this.edges.length;
var e = void 0;
var e = undefined;

for (; i < l; ++i) {
e = this.edges[i];
Expand Down
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Node {
}

findEdge(c) {
let [i, l, e] = [0, this.edges.length, void 0];
let [i, l, e] = [0, this.edges.length, undefined];
for (; i < l; ++i) {
e = this.edges[i];
// compare charCode
Expand Down

0 comments on commit 74cde12

Please sign in to comment.