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 cjihrig committed Nov 7, 2017
1 parent 219ac4b commit e9396d2
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 e9396d2

Please sign in to comment.