The Wayback Machine - https://web.archive.org/web/20220320160233/https://github.com/nodejs/node/commit/f6e332da2d
Skip to content
Permalink
Browse files
lib: implement consistent brace style
This change is in preparation for lint-enforced brace style.

PR-URL: #8348
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed Oct 26, 2016
1 parent 4f31071 commit f6e332da2dbaa03906c93f98285d388885af13ed
Showing with 7 additions and 7 deletions.
  1. +5 −3 lib/_stream_readable.js
  2. +1 −2 lib/module.js
  3. +1 −2 lib/net.js
@@ -802,9 +802,11 @@ Readable.prototype.wrap = function(stream) {
// important when wrapping filters and duplexes.
for (var i in stream) {
if (this[i] === undefined && typeof stream[i] === 'function') {
this[i] = function(method) { return function() {
return stream[method].apply(stream, arguments);
}; }(i);
this[i] = function(method) {
return function() {
return stream[method].apply(stream, arguments);
};
}(i);
}
}

@@ -488,8 +488,7 @@ Module._preloadModules = function(requests) {
var parent = new Module('internal/preload', null);
try {
parent.paths = Module._nodeModulePaths(process.cwd());
}
catch (e) {
} catch (e) {
if (e.code !== 'ENOENT') {
throw e;
}
@@ -1155,8 +1155,7 @@ function createServerHandle(address, port, addressType, fd) {
if (typeof fd === 'number' && fd >= 0) {
try {
handle = createHandle(fd);
}
catch (e) {
} catch (e) {
// Not a fd we can listen on. This will trigger an error.
debug('listen invalid fd=' + fd + ': ' + e.message);
return uv.UV_EINVAL;

0 comments on commit f6e332d

Please sign in to comment.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.