Skip to content

Commit 1a829af

Browse files
TrottMyles Borins
authored andcommitted
benchmark: fix linting issues
PR-URL: #5773 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent b983765 commit 1a829af

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

benchmark/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function parseOpts(options) {
191191
if (!match || !match[1] || !match[2] || !options[match[1]]) {
192192
return null;
193193
} else {
194-
conf[match[1]] = isFinite(match[2]) ? +match[2] : match[2]
194+
conf[match[1]] = isFinite(match[2]) ? +match[2] : match[2];
195195
num--;
196196
}
197197
}

benchmark/misc/domain-fn-args.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ var gargs = [1, 2, 3];
1212

1313
function main(conf) {
1414

15-
var args, ret, n = +conf.n;
15+
var args, n = +conf.n;
1616
var myArguments = gargs.slice(0, conf.arguments);
1717
bench.start();
1818

1919
bdomain.enter();
2020
for (var i = 0; i < n; i++) {
2121
if (myArguments.length >= 2) {
2222
args = Array.prototype.slice.call(myArguments, 1);
23-
ret = fn.apply(this, args);
23+
fn.apply(this, args);
2424
} else {
2525
fn.call(this);
2626
}

benchmark/misc/url.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
var url = require('url')
2+
var url = require('url');
33
var n = 25 * 100;
44

55
var urls = [
@@ -21,7 +21,7 @@ benchmark('parse()', url.parse);
2121
benchmark('format()', url.format);
2222
paths.forEach(function(p) {
2323
benchmark('resolve("' + p + '")', function(u) {
24-
url.resolve(u, p)
24+
url.resolve(u, p);
2525
});
2626
});
2727

benchmark/net/dgram.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict';
12
// test UDP send/recv throughput
23

34
var common = require('../common.js');

benchmark/path/relative.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict';
12
var common = require('../common.js');
23
var path = require('path');
34
var v8 = require('v8');

0 commit comments

Comments
 (0)