benchmark: fix linting issues
authorRich Trott <rtrott@gmail.com>
Thu, 17 Mar 2016 23:55:46 +0000 (16:55 -0700)
committerMyles Borins <mborins@us.ibm.com>
Mon, 21 Mar 2016 20:07:10 +0000 (13:07 -0700)
PR-URL: https://github.com/nodejs/node/pull/5773
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
benchmark/common.js
benchmark/misc/domain-fn-args.js
benchmark/misc/url.js
benchmark/net/dgram.js
benchmark/path/relative.js

index eb1959b..69c3d00 100644 (file)
@@ -191,7 +191,7 @@ function parseOpts(options) {
     if (!match || !match[1] || !match[2] || !options[match[1]]) {
       return null;
     } else {
-      conf[match[1]] = isFinite(match[2]) ? +match[2] : match[2]
+      conf[match[1]] = isFinite(match[2]) ? +match[2] : match[2];
       num--;
     }
   }
index 6f1adca..e9b2481 100644 (file)
@@ -12,7 +12,7 @@ var gargs = [1, 2, 3];
 
 function main(conf) {
 
-  var args, ret, n = +conf.n;
+  var args, n = +conf.n;
   var myArguments = gargs.slice(0, conf.arguments);
   bench.start();
 
@@ -20,7 +20,7 @@ function main(conf) {
   for (var i = 0; i < n; i++) {
     if (myArguments.length >= 2) {
       args = Array.prototype.slice.call(myArguments, 1);
-      ret = fn.apply(this, args);
+      fn.apply(this, args);
     } else {
       fn.call(this);
     }
index 78fe7b6..4b65300 100644 (file)
@@ -1,5 +1,5 @@
 'use strict';
-var url = require('url')
+var url = require('url');
 var n = 25 * 100;
 
 var urls = [
@@ -21,7 +21,7 @@ benchmark('parse()', url.parse);
 benchmark('format()', url.format);
 paths.forEach(function(p) {
   benchmark('resolve("' + p + '")', function(u) {
-    url.resolve(u, p)
+    url.resolve(u, p);
   });
 });
 
index 1ccd89c..fed5b87 100644 (file)
@@ -1,3 +1,4 @@
+'use strict';
 // test UDP send/recv throughput
 
 var common = require('../common.js');
index d61c396..0a72a2a 100644 (file)
@@ -1,3 +1,4 @@
+'use strict';
 var common = require('../common.js');
 var path = require('path');
 var v8 = require('v8');