Skip to content

Commit

Permalink
test: add spaces after keywords
Browse files Browse the repository at this point in the history
eg changes:

  if(x) { ... }

to:

  if (x) { ... }
  • Loading branch information
brendanashworth committed Aug 21, 2015
1 parent 522f8a8 commit f46676e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/gc/test-http-client-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function getall() {
setImmediate(getall);
}

for(var i = 0; i < 10; i++)
for (var i = 0; i < 10; i++)
getall();

function afterGC() {
Expand Down
2 changes: 1 addition & 1 deletion test/internet/test-dgram-broadcast-multi-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var common = require('../common'),
// 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;
Expand Down
2 changes: 1 addition & 1 deletion test/internet/test-dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ TEST(function test_resolve_failure(done) {
var req = dns.resolve4('nosuchhostimsure', function(err) {
assert(err instanceof Error);

switch(err.code) {
switch (err.code) {
case 'ENOTFOUND':
case 'ESERVFAIL':
break;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-net-listen-fd0.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ process.on('exit', function() {

// 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;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-base64-single-char-read-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var accum = [];
var timeout;

src._read = function(n) {
if(!hasRead) {
if (!hasRead) {
hasRead = true;
process.nextTick(function() {
src.push(new Buffer('1'));
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-util-inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ assert.ok(util.inspect(y), '[ \'a\', \'b\', \'c\', \'\\\\\\\': \'d\' ]');
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);
Expand Down

0 comments on commit f46676e

Please sign in to comment.