| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 023386c commit 5df06fd
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,7 +54,7 @@ function getall() { | |||
| 54 | 54 | setImmediate(getall); | |
| 55 | 55 | } | |
| 56 | 56 | ||
| 57 | - for(var i = 0; i < 10; i++) | ||
| 57 | + for (var i = 0; i < 10; i++) | ||
| 58 | 58 | getall(); | |
| 59 | 59 | ||
| 60 | 60 | function afterGC() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ var common = require('../common'), | |||
| 18 | 18 | // take the first non-internal interface as the address for binding | |
| 19 | 19 | get_bindAddress: for (var name in networkInterfaces) { | |
| 20 | 20 | var interfaces = networkInterfaces[name]; | |
| 21 | - for(var i = 0; i < interfaces.length; i++) { | ||
| 21 | + for (var i = 0; i < interfaces.length; i++) { | ||
| 22 | 22 | var localInterface = interfaces[i]; | |
| 23 | 23 | if (!localInterface.internal && localInterface.family === 'IPv4') { | |
| 24 | 24 | var bindAddress = localInterface.address; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -663,7 +663,7 @@ TEST(function test_resolve_failure(done) { | |||
| 663 | 663 | var req = dns.resolve4('nosuchhostimsure', function(err) { | |
| 664 | 664 | assert(err instanceof Error); | |
| 665 | 665 | ||
| 666 | - switch(err.code) { | ||
| 666 | + switch (err.code) { | ||
| 667 | 667 | case 'ENOTFOUND': | |
| 668 | 668 | case 'ESERVFAIL': | |
| 669 | 669 | break; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ process.on('exit', function() { | |||
| 11 | 11 | ||
| 12 | 12 | // this should fail with an async EINVAL error, not throw an exception | |
| 13 | 13 | net.createServer(assert.fail).listen({fd:0}).on('error', function(e) { | |
| 14 | - switch(e.code) { | ||
| 14 | + switch (e.code) { | ||
| 15 | 15 | case 'EINVAL': | |
| 16 | 16 | case 'ENOTSOCK': | |
| 17 | 17 | gotError = e; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ var accum = []; | |||
| 11 | 11 | var timeout; | |
| 12 | 12 | ||
| 13 | 13 | src._read = function(n) { | |
| 14 | - if(!hasRead) { | ||
| 14 | + if (!hasRead) { | ||
| 15 | 15 | hasRead = true; | |
| 16 | 16 | process.nextTick(function() { | |
| 17 | 17 | src.push(new Buffer('1')); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,7 @@ assert.ok(util.inspect(y), '[ \'a\', \'b\', \'c\', \'\\\\\\\': \'d\' ]'); | |||
| 106 | 106 | function test_color_style(style, input, implicit) { | |
| 107 | 107 | var color_name = util.inspect.styles[style]; | |
| 108 | 108 | var color = ['', '']; | |
| 109 | - if(util.inspect.colors[color_name]) | ||
| 109 | + if (util.inspect.colors[color_name]) | ||
| 110 | 110 | color = util.inspect.colors[color_name]; | |
| 111 | 111 | ||
| 112 | 112 | var without_color = util.inspect(input, false, 0, false); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments