mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
report: remove unnecessary intermediate variable
PR-URL: https://github.com/nodejs/node/pull/25597 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
This commit is contained in:
@@ -232,8 +232,7 @@ void WalkHandle(uv_handle_t* h, void* arg) {
|
||||
if (h->type == UV_TCP || h->type == UV_NAMED_PIPE || h->type == UV_TTY ||
|
||||
h->type == UV_UDP || h->type == UV_POLL) {
|
||||
uv_os_fd_t fd_v;
|
||||
uv_os_fd_t* fd = &fd_v;
|
||||
int rc = uv_fileno(h, fd);
|
||||
int rc = uv_fileno(h, &fd_v);
|
||||
// uv_os_fd_t is an int on Unix and HANDLE on Windows.
|
||||
#ifndef _WIN32
|
||||
if (rc == 0) {
|
||||
|
||||
Reference in New Issue
Block a user