Skip to content

Commit

Permalink
Fix shadowed models variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zbarbuto committed Nov 6, 2017
1 parent 43835c2 commit 67a3e7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions route.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ var conversions = require('./conversions');
conversions that are not possible simply are not included.
*/

// https://jsperf.com/object-keys-vs-for-in-with-closure/3
var models = Object.keys(conversions);

function buildGraph() {
var graph = {};

// https://jsperf.com/object-keys-vs-for-in-with-closure/3
var models = Object.keys(conversions);
for (var len = models.length, i = 0; i < len; i++) {
graph[models[i]] = {
// http://jsperf.com/1-vs-infinity
Expand Down

0 comments on commit 67a3e7a

Please sign in to comment.