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 <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Nov 21, 2017
1 parent 91c984e commit 37044d3
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 37044d3

Please sign in to comment.