test: add spaces after keywords
eg changes: if(x) { ... } to: if (x) { ... }
This commit is contained in:
parent
b125ad186c
commit
8af5962608
@ -54,7 +54,7 @@ function getall() {
|
|||||||
setImmediate(getall);
|
setImmediate(getall);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(var i = 0; i < 10; i++)
|
for (var i = 0; i < 10; i++)
|
||||||
getall();
|
getall();
|
||||||
|
|
||||||
function afterGC() {
|
function afterGC() {
|
||||||
|
@ -18,7 +18,7 @@ var common = require('../common'),
|
|||||||
// take the first non-internal interface as the address for binding
|
// take the first non-internal interface as the address for binding
|
||||||
get_bindAddress: for (var name in networkInterfaces) {
|
get_bindAddress: for (var name in networkInterfaces) {
|
||||||
var interfaces = networkInterfaces[name];
|
var interfaces = networkInterfaces[name];
|
||||||
for(var i = 0; i < interfaces.length; i++) {
|
for (var i = 0; i < interfaces.length; i++) {
|
||||||
var localInterface = interfaces[i];
|
var localInterface = interfaces[i];
|
||||||
if (!localInterface.internal && localInterface.family === 'IPv4') {
|
if (!localInterface.internal && localInterface.family === 'IPv4') {
|
||||||
var bindAddress = localInterface.address;
|
var bindAddress = localInterface.address;
|
||||||
|
@ -663,7 +663,7 @@ TEST(function test_resolve_failure(done) {
|
|||||||
var req = dns.resolve4('nosuchhostimsure', function(err) {
|
var req = dns.resolve4('nosuchhostimsure', function(err) {
|
||||||
assert(err instanceof Error);
|
assert(err instanceof Error);
|
||||||
|
|
||||||
switch(err.code) {
|
switch (err.code) {
|
||||||
case 'ENOTFOUND':
|
case 'ENOTFOUND':
|
||||||
case 'ESERVFAIL':
|
case 'ESERVFAIL':
|
||||||
break;
|
break;
|
||||||
|
@ -11,7 +11,7 @@ process.on('exit', function() {
|
|||||||
|
|
||||||
// this should fail with an async EINVAL error, not throw an exception
|
// this should fail with an async EINVAL error, not throw an exception
|
||||||
net.createServer(assert.fail).listen({fd:0}).on('error', function(e) {
|
net.createServer(assert.fail).listen({fd:0}).on('error', function(e) {
|
||||||
switch(e.code) {
|
switch (e.code) {
|
||||||
case 'EINVAL':
|
case 'EINVAL':
|
||||||
case 'ENOTSOCK':
|
case 'ENOTSOCK':
|
||||||
gotError = e;
|
gotError = e;
|
||||||
|
@ -11,7 +11,7 @@ var accum = [];
|
|||||||
var timeout;
|
var timeout;
|
||||||
|
|
||||||
src._read = function(n) {
|
src._read = function(n) {
|
||||||
if(!hasRead) {
|
if (!hasRead) {
|
||||||
hasRead = true;
|
hasRead = true;
|
||||||
process.nextTick(function() {
|
process.nextTick(function() {
|
||||||
src.push(new Buffer('1'));
|
src.push(new Buffer('1'));
|
||||||
|
@ -106,7 +106,7 @@ assert.ok(util.inspect(y), '[ \'a\', \'b\', \'c\', \'\\\\\\\': \'d\' ]');
|
|||||||
function test_color_style(style, input, implicit) {
|
function test_color_style(style, input, implicit) {
|
||||||
var color_name = util.inspect.styles[style];
|
var color_name = util.inspect.styles[style];
|
||||||
var color = ['', ''];
|
var color = ['', ''];
|
||||||
if(util.inspect.colors[color_name])
|
if (util.inspect.colors[color_name])
|
||||||
color = util.inspect.colors[color_name];
|
color = util.inspect.colors[color_name];
|
||||||
|
|
||||||
var without_color = util.inspect(input, false, 0, false);
|
var without_color = util.inspect(input, false, 0, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user