From e9396d28b165646ded328e4594103ed36e64d1dd Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Mon, 6 Nov 2017 20:46:06 +0200 Subject: [PATCH] tools: remove unneeded parentheses in doc/html.js PR-URL: https://github.com/nodejs/node/pull/16845 Ref: https://github.com/nodejs/node/pull/16801#discussion_r149142120 Reviewed-By: Colin Ihrig Reviewed-By: Jeremiah Senkpiel Reviewed-By: Rich Trott --- tools/doc/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/doc/html.js b/tools/doc/html.js index 462de24fd7be59..6729dbba186268 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -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; }