Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tools: replace string concatenation with template literals
Replaces a string concatenation in the processList function
in doc/json.js.
  • Loading branch information
lambrojos committed Nov 6, 2017
commit e8ac8c60b3a639b0a4b11fe5e5276a085f3cdd93
2 changes: 1 addition & 1 deletion tools/doc/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function processList(section) {
JSON.stringify(list));
}
current.textRaw = current.textRaw || '';
current.textRaw += `${tok.text} `;
current.textRaw = `${current.textRaw}${tok.text} `;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a slightly better way of doing this would be to make it all one line, like so:

current.textRaw = `${current.textRaw || ''}${tok.text} `;

}
});

Expand Down