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

Lines changed: 6 additions & 6 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function getall() {
5454
setImmediate(getall);
5555
}
5656

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

6060
functionafterGC(){

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

Lines changed: 1 addition & 1 deletion
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(varnameinnetworkInterfaces){
2020
varinterfaces=networkInterfaces[name];
21-
for(vari=0;i<interfaces.length;i++){
21+
for(vari=0;i<interfaces.length;i++){
2222
varlocalInterface=interfaces[i];
2323
if(!localInterface.internal&&localInterface.family==='IPv4'){
2424
varbindAddress=localInterface.address;

‎test/internet/test-dns.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ TEST(function test_resolve_failure(done) {
663663
varreq=dns.resolve4('nosuchhostimsure',function(err){
664664
assert(errinstanceofError);
665665

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

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

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var accum = [];
1111
vartimeout;
1212

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

‎test/parallel/test-util-inspect.js‎

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

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

0 commit comments

Comments
 (0)