Skip to content

Commit 379d99d

Browse files
authored
avoid intermediate variable (#572)
1 parent ec3b20a commit 379d99d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,7 @@ function buildArray (location) {
606606
if (schema.additionalItems) {
607607
functionCode += `
608608
for (let i = ${itemsSchema.length}; i < arrayLength; i++) {
609-
let json = JSON.stringify(obj[i])
610-
jsonOutput += json
609+
jsonOutput += JSON.stringify(obj[i])
611610
if (i < arrayLength - 1) {
612611
jsonOutput += ','
613612
}

0 commit comments

Comments
 (0)