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 f86b2d0
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 f86b2d0

Please sign in to comment.