Skip to content

Commit 337a865

Browse files
miccycnaddaleax
authored andcommitted
test: replace string concatenation with template
Replace string concatenation with template literals in test/async-hooks/verify-graph.js. PR-URL: #14279 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 85c181a commit 337a865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/async-hooks/verify-graph.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports.printGraph = function printGraph(hooks) {
106106
function procesNode(x) {
107107
const key = x.type.replace(/WRAP/, '').toLowerCase();
108108
if (!ids[key]) ids[key] = 1;
109-
const id = key + ':' + ids[key]++;
109+
const id = `${key}:${ids[key]++}`;
110110
uidtoid[x.uid] = id;
111111
const triggerAsyncId = uidtoid[x.triggerAsyncId] || null;
112112
graph.push({ type: x.type, id, triggerAsyncId });

0 commit comments

Comments
 (0)