Skip to content

Commit ce007be

Browse files
lambrojosMylesBorins
authored andcommitted
tools: replace string concatenation with template literals
Replace a string concatenation in the processList function in doc/json.js. If missing, initialize the textRow property in the same line of the concatenation. PR-URL: #16806 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent e7a456a commit ce007be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/doc/json.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ function processList(section) {
235235
`${JSON.stringify(tok)}\n` +
236236
JSON.stringify(list));
237237
}
238-
current.textRaw = current.textRaw || '';
239-
current.textRaw += `${tok.text} `;
238+
current.textRaw = `${current.textRaw || ''}${tok.text} `;
240239
}
241240
});
242241

0 commit comments

Comments
 (0)