Skip to content

Commit

Permalink
Fix shadowed models variable (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbarbuto authored and Qix- committed Nov 8, 2017
1 parent 43835c2 commit 874bf56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions route.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +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]] = {
Expand Down

0 comments on commit 874bf56

Please sign in to comment.