From cde81b6b9f3d39629ccacae5f9e82ba2527c4f29 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 21 Mar 2016 20:48:29 -0700 Subject: [PATCH] benchmark: fix linting errors 4d78121b7786ee5b676d45b9d11e9a89d8dd249c had lint errors that went undetected. This fixes them. PR-URL: https://github.com/nodejs/node/pull/5840 Reviewed-By: Evan Lucas Reviewed-By: Myles Borins Reviewed-By: James M Snell --- benchmark/http_simple_auto.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmark/http_simple_auto.js b/benchmark/http_simple_auto.js index fdb6fc9a79..fa9a2a4849 100644 --- a/benchmark/http_simple_auto.js +++ b/benchmark/http_simple_auto.js @@ -13,7 +13,7 @@ var spawn = require('child_process').spawn; var port = parseInt(process.env.PORT || 8000); -var fixed = "C".repeat(20 * 1024); +var fixed = 'C'.repeat(20 * 1024); var stored = {}; var storedBuffer = {}; @@ -26,13 +26,14 @@ var server = http.createServer(function(req, res) { var n_chunks = parseInt(commands[3], 10); var status = 200; var n; + var i; if (command == 'bytes') { n = parseInt(arg, 10); if (n <= 0) throw new Error('bytes called with n <= 0'); if (stored[n] === undefined) { - stored[n] = "C".repeat(n); + stored[n] = 'C'.repeat(n); } body = stored[n];