Skip to content

Commit 189dd8f

Browse files
committed
Fix line endings and trailing whitespace
1 parent 358f0ce commit 189dd8f

File tree

10 files changed

+39
-39
lines changed

10 files changed

+39
-39
lines changed

lib/child_process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function setupChannel(target, channel) {
116116

117117
// For overflow protection don't write if channel queue is too deep.
118118
if (channel.writeQueueSize > 1024 * 1024) {
119-
return false;
119+
return false;
120120
}
121121

122122
var buffer = Buffer(JSON.stringify(message) + '\n');

lib/cluster.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ exports.isMaster = ! exports.isWorker;
5656
// Specifies the script to execute for the child processes. Default is
5757
// process.argv[1]
5858
//
59-
// options.args
59+
// options.args
6060
// Specifies program arguments for the workers. The Default is
6161
// process.argv.slice(2)
6262
//
@@ -109,7 +109,7 @@ function handleWorkerMessage(worker, message) {
109109
debug("recv " + JSON.stringify(message));
110110

111111
switch (message.cmd) {
112-
case 'online':
112+
case 'online':
113113
console.log("Worker " + worker.pid + " online");
114114
workers[message._workerId] = worker;
115115
break;

src/fs_event_wrap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Handle<Value> FSEventWrap::Start(const Arguments& args) {
111111
if (!args[1]->IsTrue()) {
112112
uv_unref(uv_default_loop());
113113
}
114-
} else {
114+
} else {
115115
SetErrno(uv_last_error(uv_default_loop()));
116116
}
117117

src/node_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace node {
5050
Migrating code C++ Buffer code from v0.2 to v0.3 is difficult. Here are
5151
some tips:
5252
- buffer->data() calls should become Buffer::Data(buffer) calls.
53-
- buffer->length() calls should become Buffer::Length(buffer) calls.
53+
- buffer->length() calls should become Buffer::Length(buffer) calls.
5454
- There should not be any ObjectWrap::Unwrap<Buffer>() calls. You should
5555
not be storing pointers to Buffer objects at all - as they are
5656
now considered internal structures. Instead consider making a

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ int Connection::SelectNextProtoCallback_(SSL *s,
780780
}
781781

782782
return SSL_TLSEXT_ERR_OK;
783-
}
783+
}
784784
#endif
785785

786786
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB

src/node_crypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class Connection : ObjectWrap {
193193
BIO *bio_read_;
194194
BIO *bio_write_;
195195
SSL *ssl_;
196-
196+
197197
bool is_server_; /* coverity[member_decl] */
198198
};
199199

src/node_extensions.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ node_module_struct* get_builtin_module(const char *name)
5656
char buf[128];
5757
node_module_struct *cur = NULL;
5858
snprintf(buf, sizeof(buf), "node_%s", name);
59-
/* TODO: you could look these up in a hash, but there are only
59+
/* TODO: you could look these up in a hash, but there are only
6060
* a few, and once loaded they are cached. */
6161
for (int i = 0; node_module_list[i] != NULL; i++) {
6262
cur = node_module_list[i];

src/platform_win32.h

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
// Copyright Joyent, Inc. and other Node contributors.
2-
//
3-
// Permission is hereby granted, free of charge, to any person obtaining a
4-
// copy of this software and associated documentation files (the
5-
// "Software"), to deal in the Software without restriction, including
6-
// without limitation the rights to use, copy, modify, merge, publish,
7-
// distribute, sublicense, and/or sell copies of the Software, and to permit
8-
// persons to whom the Software is furnished to do so, subject to the
9-
// following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be included
12-
// in all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21-
1+
// Copyright Joyent, Inc. and other Node contributors.
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a
4+
// copy of this software and associated documentation files (the
5+
// "Software"), to deal in the Software without restriction, including
6+
// without limitation the rights to use, copy, modify, merge, publish,
7+
// distribute, sublicense, and/or sell copies of the Software, and to permit
8+
// persons to whom the Software is furnished to do so, subject to the
9+
// following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included
12+
// in all copies or substantial portions of the Software.
13+
//
14+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
2222
#ifndef NODE_PLATFORM_WIN32_H_
2323
#define NODE_PLATFORM_WIN32_H_
2424

@@ -56,15 +56,15 @@
5656
# define NOMCX
5757
#endif
5858

59-
#include <windows.h>
60-
#include <winsock2.h>
59+
#include <windows.h>
60+
#include <winsock2.h>
61+
62+
#if defined(_MSC_VER)
63+
#define STDIN_FILENO 0
64+
#define STDOUT_FILENO 1
65+
#define STDERR_FILENO 2
66+
#endif
6167

62-
#if defined(_MSC_VER)
63-
#define STDIN_FILENO 0
64-
#define STDOUT_FILENO 1
65-
#define STDERR_FILENO 2
66-
#endif
67-
6868
namespace node {
6969

7070
#define NO_IMPL_MSG(...) \

src/tcp_wrap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ Handle<Value> TCPWrap::Connect(const Arguments& args) {
422422
// I'm too lazy to come up with the perfect class hierarchy here. Let's
423423
// just do some type munging.
424424
ConnectWrap* req_wrap = new ConnectWrap();
425-
425+
426426
int r = uv_tcp_connect(&req_wrap->req_, &wrap->handle_, address,
427427
AfterConnect);
428428

src/tty_wrap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class TTYWrap : StreamWrap {
116116

117117
static Handle<Value> GetWindowSize(const Arguments& args) {
118118
HandleScope scope;
119-
119+
120120
UNWRAP
121121

122122
int width, height;

0 commit comments

Comments
 (0)