setImmediate(getall);
}
-for(var i = 0; i < 10; i++)
+for (var i = 0; i < 10; i++)
getall();
function afterGC() {
// take the first non-internal interface as the address for binding
get_bindAddress: for (var name in networkInterfaces) {
var interfaces = networkInterfaces[name];
- for(var i = 0; i < interfaces.length; i++) {
+ for (var i = 0; i < interfaces.length; i++) {
var localInterface = interfaces[i];
if (!localInterface.internal && localInterface.family === 'IPv4') {
var bindAddress = localInterface.address;
var req = dns.resolve4('nosuchhostimsure', function(err) {
assert(err instanceof Error);
- switch(err.code) {
+ switch (err.code) {
case 'ENOTFOUND':
case 'ESERVFAIL':
break;
// this should fail with an async EINVAL error, not throw an exception
net.createServer(assert.fail).listen({fd:0}).on('error', function(e) {
- switch(e.code) {
+ switch (e.code) {
case 'EINVAL':
case 'ENOTSOCK':
gotError = e;
var timeout;
src._read = function(n) {
- if(!hasRead) {
+ if (!hasRead) {
hasRead = true;
process.nextTick(function() {
src.push(new Buffer('1'));
function test_color_style(style, input, implicit) {
var color_name = util.inspect.styles[style];
var color = ['', ''];
- if(util.inspect.colors[color_name])
+ if (util.inspect.colors[color_name])
color = util.inspect.colors[color_name];
var without_color = util.inspect(input, false, 0, false);