summaryrefslogtreecommitdiff
path: root/benchmark/module
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-02-24 22:30:10 -0800
committerRich Trott <rtrott@gmail.com>2016-02-27 20:15:17 -0800
commitdcfda1007bb74a8354a47852bebe830a23916b6d (patch)
treec2c21681a7c0fa25bf74c8ecaaa0c19c5a3e6316 /benchmark/module
parent7fc6645982855ced40bf4af4b002a30b30510ac0 (diff)
downloadandroid-node-v8-dcfda1007bb74a8354a47852bebe830a23916b6d.tar.gz
android-node-v8-dcfda1007bb74a8354a47852bebe830a23916b6d.tar.bz2
android-node-v8-dcfda1007bb74a8354a47852bebe830a23916b6d.zip
tools,benchmark: increase lint compliance
In the hopes of soon having the benchmark code linted, this change groups all the likely non-controversial lint-compliance changes such as indentation, semi-colon usage, and single-vs.-double quotation marks. Other lint rules may have subtle performance implications in the V8 currently shipped with Node.js. Those changes will require more careful review and will be in a separate change. PR-URL: https://github.com/nodejs/node/pull/5429 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Brian White <mscdex@mscdex.net>
Diffstat (limited to 'benchmark/module')
-rw-r--r--benchmark/module/module-loader.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/module/module-loader.js b/benchmark/module/module-loader.js
index 17948604c7..8c31f36522 100644
--- a/benchmark/module/module-loader.js
+++ b/benchmark/module/module-loader.js
@@ -2,7 +2,6 @@
var fs = require('fs');
var path = require('path');
var common = require('../common.js');
-var packageJson = '{"main": "index.js"}';
var tmpDirectory = path.join(__dirname, '..', 'tmp');
var benchmarkDirectory = path.join(tmpDirectory, 'nodejs-benchmark-module');
@@ -39,7 +38,7 @@ function rmrf(location) {
var things = fs.readdirSync(location);
things.forEach(function(thing) {
var cur = path.join(location, thing),
- isDirectory = fs.statSync(cur).isDirectory();
+ isDirectory = fs.statSync(cur).isDirectory();
if (isDirectory) {
rmrf(cur);
return;