Skip to content

Commit

Permalink
Use first key in apiName const
Browse files Browse the repository at this point in the history
  • Loading branch information
enjikaka committed Mar 7, 2018
1 parent 755a610 commit 6ce5b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper-scripts/sort-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ console.log(`Sorting version arrays in ${fileName}`);
const data = fs.readFileSync(fileName);
const compatData = JSON.parse(data.toString());

const apiName = Object.keys(compatData.api);
const apiName = Object.keys(compatData.api)[0];
const methods = Object.keys(compatData.api[apiName]);

const api = compatData.api[apiName];
Expand Down

0 comments on commit 6ce5b21

Please sign in to comment.