Skip to content

Commit 341b3d0

Browse files
TrottFishrock123
authored andcommitted
benchmark: fix linting errors
4d78121 had lint errors that went undetected. This fixes them. PR-URL: #5840 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7c2c7b0 commit 341b3d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benchmark/http_simple_auto.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var spawn = require('child_process').spawn;
1313

1414
var port = parseInt(process.env.PORT || 8000);
1515

16-
var fixed = "C".repeat(20 * 1024);
16+
var fixed = 'C'.repeat(20 * 1024);
1717

1818
var stored = {};
1919
var storedBuffer = {};
@@ -26,13 +26,14 @@ var server = http.createServer(function(req, res) {
2626
var n_chunks = parseInt(commands[3], 10);
2727
var status = 200;
2828
var n;
29+
var i;
2930

3031
if (command == 'bytes') {
3132
n = parseInt(arg, 10);
3233
if (n <= 0)
3334
throw new Error('bytes called with n <= 0');
3435
if (stored[n] === undefined) {
35-
stored[n] = "C".repeat(n);
36+
stored[n] = 'C'.repeat(n);
3637
}
3738
body = stored[n];
3839

0 commit comments

Comments
 (0)