Skip to content

Commit

Permalink
benchmark: fix linting errors
Browse files Browse the repository at this point in the history
4d78121 had lint errors that went
undetected. This fixes them.

PR-URL: #5840
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and Fishrock123 committed Mar 22, 2016
1 parent 7c2c7b0 commit 341b3d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmark/http_simple_auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand All @@ -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];

Expand Down

0 comments on commit 341b3d0

Please sign in to comment.