Skip to content

Commit

Permalink
Fix remaining lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed Jul 8, 2015
1 parent 06689de commit 5c4dbba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ exports.fileExists = function(pathname) {
};

exports.runTestInsideWorker = function(testFilePath) {
const Worker = require("worker");
const Worker = require('worker');
return new Promise(function(resolve, reject) {
var worker = new Worker(testFilePath, {keepAlive: false});
worker.on('exit', function(exitCode) {
Expand All @@ -467,8 +467,8 @@ exports.runTestInsideWorker = function(testFilePath) {
});

worker.on('error', function(e) {
reject(new Error(util.format(
'Running %s inside worker failed:\n%s', testFilePath, e.stack)));
reject(new Error(util.format(
'Running %s inside worker failed:\n%s', testFilePath, e.stack)));
});
});
};
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-util-inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ assert.equal(util.inspect(map, true),
assert.equal(util.inspect(Promise.resolve(3)), 'Promise { 3 }');
var rejectedPromise = Promise.reject(3);
// Handle rejection.
rejectedPromise.catch(function(){});
rejectedPromise.catch(function() {});
assert.equal(util.inspect(rejectedPromise), 'Promise { <rejected> 3 }');
assert.equal(util.inspect(new Promise(function() {})), 'Promise { <pending> }');
var promise = Promise.resolve('foo');
Expand Down
3 changes: 0 additions & 3 deletions test/workers/test-fs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Flags: --experimental-workers
'use strict';




var assert = require('assert');
var util = require('util');
var Worker = require('worker');
Expand Down

0 comments on commit 5c4dbba

Please sign in to comment.