Skip to content

Commit 447347c

Browse files
silverwindMyles Borins
authored and
Myles Borins
committed
test: fix issues for space-in-parens ESLint rule
PR-URL: #4753 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Evan Lucas <[email protected]>
1 parent 39cb69c commit 447347c

5 files changed

+5
-5
lines changed

test/parallel/test-beforeexit-event.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var common = require('../common');
55
var revivals = 0;
66
var deaths = 0;
77

8-
process.on('beforeExit', function() { deaths++; } );
8+
process.on('beforeExit', function() { deaths++; });
99

1010
process.once('beforeExit', tryImmediate);
1111

test/parallel/test-crypto-hmac.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var wikipedia = [
6262
for (var i = 0, l = wikipedia.length; i < l; i++) {
6363
for (var hash in wikipedia[i]['hmac']) {
6464
// FIPS does not support MD5.
65-
if (common.hasFipsCrypto && hash == 'md5' )
65+
if (common.hasFipsCrypto && hash == 'md5')
6666
continue;
6767
var result = crypto.createHmac(hash, wikipedia[i]['key'])
6868
.update(wikipedia[i]['data'])

test/parallel/test-http-client-timeout-agent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var options = {
1717
var server = http.createServer(function(req, res) {
1818
const m = /\/(.*)/.exec(req.url);
1919
const reqid = parseInt(m[1], 10);
20-
if ( reqid % 2 ) {
20+
if (reqid % 2) {
2121
// do not reply the request
2222
} else {
2323
res.writeHead(200, {'Content-Type': 'text/plain'});

test/parallel/test-process-binding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ assert.throws(
1212
assert.doesNotThrow(function() {
1313
process.binding('buffer');
1414
}, function(err) {
15-
if ( (err instanceof Error) ) {
15+
if (err instanceof Error) {
1616
return true;
1717
}
1818
}, 'unexpected error');

test/pummel/test-timers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ clearTimeout(id);
3030

3131
setInterval(function() {
3232
interval_count += 1;
33-
var endtime = new Date( );
33+
var endtime = new Date();
3434

3535
var diff = endtime - starttime;
3636
assert.ok(diff > 0);

0 commit comments

Comments
 (0)