Skip to content

Commit 120d756

Browse files
toniovMylesBorins
authored andcommitted
benchmark: refactor to use template string
PR-URL: #17313 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 2bd241e commit 120d756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/zlib/creation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
1212

1313
function main(conf) {
1414
const n = +conf.n;
15-
const fn = zlib['create' + conf.type];
15+
const fn = zlib[`create${conf.type}`];
1616
if (typeof fn !== 'function')
1717
throw new Error('Invalid zlib type');
1818
var i = 0;

0 commit comments

Comments
 (0)