Skip to content

Commit

Permalink
fix: use Object.keys for adding OptionScopes
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 2, 2021
1 parent 02f5bbd commit f386a00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ export const config = {
},
}

for (let key in OptionScopes) {
config[key] = {
const keys = Object.keys(OptionScopes)
for (let i = 0, len = keys.length; i < len; i++) {
config[keys[i]] = {
type: "boolean",
default: false,
}
Expand Down

0 comments on commit f386a00

Please sign in to comment.