Skip to content

Commit

Permalink
benchmark: refactor to use template string
Browse files Browse the repository at this point in the history
PR-URL: #17313
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
toniov authored and MylesBorins committed Dec 11, 2017
1 parent 4bc558a commit 7266c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/zlib/creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {

function main(conf) {
const n = +conf.n;
const fn = zlib['create' + conf.type];
const fn = zlib[`create${conf.type}`];
if (typeof fn !== 'function')
throw new Error('Invalid zlib type');
var i = 0;
Expand Down

0 comments on commit 7266c09

Please sign in to comment.