Skip to content

Commit fa6d602

Browse files
committed
Code cleanup
1 parent 17995e3 commit fa6d602

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

utils/JsonOutput.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ class JsonOutput {
2020
}
2121

2222
getKeys() {
23-
const keys = this.options.head.map(this.toKebabCase);
24-
return keys;
23+
return this.options.head.map(this.toKebabCase);
2524
}
2625

2726
toKebabCase(str) {
2827
return str.toLowerCase()
29-
.replace(/ {1,}/gi, '-')
30-
.replace(/\(|\)/gi, '');
28+
.replace(/ {1,}/g, '-')
29+
.replace(/\(|\)/g, '');
3130
}
3231

3332
push(value) {

0 commit comments

Comments
 (0)