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: nodejs#16845
Ref: nodejs#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 Trott committed Nov 6, 2017
1 parent 48a7772 commit 74d9dc2
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 @@ -518,7 +518,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 74d9dc2

Please sign in to comment.