Skip to content

Commit 5df06fd

Browse files
brendanashworthrvagg
authored andcommitted
test: add spaces after keywords
eg changes: if(x) { ... } to: if (x) { ... }
1 parent 023386c commit 5df06fd

6 files changed

+6
-6
lines changed

test/gc/test-http-client-timeout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function getall() {
5454
setImmediate(getall);
5555
}
5656

57-
for(var i = 0; i < 10; i++)
57+
for (var i = 0; i < 10; i++)
5858
getall();
5959

6060
function afterGC() {

test/internet/test-dgram-broadcast-multi-process.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var common = require('../common'),
1818
// take the first non-internal interface as the address for binding
1919
get_bindAddress: for (var name in networkInterfaces) {
2020
var interfaces = networkInterfaces[name];
21-
for(var i = 0; i < interfaces.length; i++) {
21+
for (var i = 0; i < interfaces.length; i++) {
2222
var localInterface = interfaces[i];
2323
if (!localInterface.internal && localInterface.family === 'IPv4') {
2424
var bindAddress = localInterface.address;

test/internet/test-dns.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ TEST(function test_resolve_failure(done) {
663663
var req = dns.resolve4('nosuchhostimsure', function(err) {
664664
assert(err instanceof Error);
665665

666-
switch(err.code) {
666+
switch (err.code) {
667667
case 'ENOTFOUND':
668668
case 'ESERVFAIL':
669669
break;

test/parallel/test-net-listen-fd0.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ process.on('exit', function() {
1111

1212
// this should fail with an async EINVAL error, not throw an exception
1313
net.createServer(assert.fail).listen({fd:0}).on('error', function(e) {
14-
switch(e.code) {
14+
switch (e.code) {
1515
case 'EINVAL':
1616
case 'ENOTSOCK':
1717
gotError = e;

test/parallel/test-stream2-base64-single-char-read-end.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var accum = [];
1111
var timeout;
1212

1313
src._read = function(n) {
14-
if(!hasRead) {
14+
if (!hasRead) {
1515
hasRead = true;
1616
process.nextTick(function() {
1717
src.push(new Buffer('1'));

test/parallel/test-util-inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ assert.ok(util.inspect(y), '[ \'a\', \'b\', \'c\', \'\\\\\\\': \'d\' ]');
106106
function test_color_style(style, input, implicit) {
107107
var color_name = util.inspect.styles[style];
108108
var color = ['', ''];
109-
if(util.inspect.colors[color_name])
109+
if (util.inspect.colors[color_name])
110110
color = util.inspect.colors[color_name];
111111

112112
var without_color = util.inspect(input, false, 0, false);

0 commit comments

Comments
 (0)