0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Marcos Casagrande 1a67c9948c
stream: remove dead code
Remove unreachable code. `state.ended` is always set to true
in this part of the code. The `else` clause can't be executed.

PR-URL: https://github.com/nodejs/node/pull/27125
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2019-04-10 23:40:39 +02:00
..
internal module: remove usage of require('util') 2019-04-10 23:21:59 +02:00
_http_agent.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
_http_client.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
_http_common.js lib: force using primordials for JSON, Math and Reflect 2019-04-03 21:36:08 +08:00
_http_incoming.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
_http_outgoing.js lib: use safe methods from primordials 2019-04-08 11:23:09 +02:00
_http_server.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
_stream_duplex.js benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
_stream_passthrough.js
_stream_readable.js stream: remove dead code 2019-04-10 23:40:39 +02:00
_stream_transform.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
_stream_wrap.js lib: assign missed deprecation code 2019-03-07 15:48:55 +01:00
_stream_writable.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
_tls_common.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
_tls_wrap.js errors: add more information in case of invalid callbacks 2019-04-04 12:51:03 +02:00
.eslintrc.yaml tools: print a better message for unexpected use of globals 2019-04-06 16:15:28 +02:00
assert.js test: cover thenables when we check for promises 2019-04-10 23:37:41 +02:00
async_hooks.js async_hooks: improve AsyncResource performance 2019-04-05 05:37:01 +02:00
buffer.js buffer: fix custom inspection with extra properties 2019-04-08 08:55:46 +02:00
child_process.js child_process: use non-infinite maxBuffer defaults 2019-04-09 13:57:04 -07:00
cluster.js
console.js
constants.js
crypto.js lib: remove env: node in eslint config for lib files 2019-04-06 12:04:36 +08:00
dgram.js dgram: add support for UDP connected sockets 2019-04-03 06:48:13 +02:00
dns.js errors: add more information in case of invalid callbacks 2019-04-04 12:51:03 +02:00
domain.js lib: force using primordials for JSON, Math and Reflect 2019-04-03 21:36:08 +08:00
events.js lib: force using primordials for JSON, Math and Reflect 2019-04-03 21:36:08 +08:00
fs.js fs: warn on non-portable mkdtemp() templates 2019-04-08 21:16:56 -04:00
http2.js
http.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
https.js https: remove usage of public require('util') 2019-03-23 18:40:24 +05:30
inspector.js errors: add more information in case of invalid callbacks 2019-04-04 12:51:03 +02:00
module.js
net.js lib: move DEP0021 to end of life 2019-04-10 08:25:50 -04:00
os.js lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00
path.js path: refactor for less indentation 2019-04-03 02:35:18 +02:00
perf_hooks.js errors: add more information in case of invalid callbacks 2019-04-04 12:51:03 +02:00
process.js
punycode.js
querystring.js querystring: simplify stringify method 2019-04-04 15:26:06 +02:00
readline.js lib: force using primordials for JSON, Math and Reflect 2019-04-03 21:36:08 +08:00
repl.js module: remove dead code 2019-04-08 18:56:17 +02:00
stream.js stream: reduce internal usage of public require of util 2019-03-22 00:48:32 +01:00
string_decoder.js
sys.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
timers.js errors: add more information in case of invalid callbacks 2019-04-04 12:51:03 +02:00
tls.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
trace_events.js trace_events: remove usage of require('util') 2019-03-24 18:28:07 +08:00
tty.js tty: remove util.inherits usage 2019-03-25 00:26:49 +01:00
url.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
util.js lib: use safe methods from primordials 2019-04-08 11:23:09 +02:00
v8.js v8: integrate node-heapdump into core 2019-03-13 15:50:32 +00:00
vm.js lib: use safe methods from primordials 2019-04-08 11:23:09 +02:00
worker_threads.js worker: use copy of process.env 2019-03-30 22:25:35 +01:00
zlib.js lib: force using primordials for JSON, Math and Reflect 2019-04-03 21:36:08 +08:00