Skip to content

Commit e781d93

Browse files
lambrojoscjihrig
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 <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent ec1b110 commit e781d93

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
@@ -256,8 +256,7 @@ function processList(section) {
256256
`${JSON.stringify(tok)}\n` +
257257
JSON.stringify(list));
258258
}
259-
current.textRaw = current.textRaw || '';
260-
current.textRaw += `${tok.text} `;
259+
current.textRaw = `${current.textRaw || ''}${tok.text} `;
261260
}
262261
});
263262

0 commit comments

Comments
 (0)