Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb08f5d

Browse filesBrowse files
vsemozhetbytMylesBorins
authored andcommitted
tools: remove unneeded parentheses in doc/html.js
PR-URL: #16845 Ref: #16801 (comment) Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent b166b6b commit cb08f5d
Copy full SHA for cb08f5d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎tools/doc/html.js‎

Copy file name to clipboardExpand all lines: tools/doc/html.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ function getId(text) {
518518
text = text.replace(/^_+|_+$/, '');
519519
text = text.replace(/^([^a-z])/, '_$1');
520520
if (idCounters.hasOwnProperty(text)) {
521-
text += `_${(++idCounters[text])}`;
521+
text += `_${++idCounters[text]}`;
522522
} else {
523523
idCounters[text] = 0;
524524
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.