Skip to content

Commit

Permalink
tools: remove unneeded parentheses in doc/html.js
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Nov 16, 2017
1 parent b38616c commit 9b65fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function getId(text) {
text = text.replace(/^_+|_+$/, '');
text = text.replace(/^([^a-z])/, '_$1');
if (idCounters.hasOwnProperty(text)) {
text += `_${(++idCounters[text])}`;
text += `_${++idCounters[text]}`;
} else {
idCounters[text] = 0;
}
Expand Down

0 comments on commit 9b65fe4

Please sign in to comment.