Skip to content
Permalink
Browse files

report: remove unnecessary intermediate variable

PR-URL: #25597
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
  • Loading branch information...
cjihrig authored and targos committed Jan 20, 2019
1 parent 2b18582 commit 42bbe58c47d9bb44b33616b5ba7f66ab6d2551bd
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/node_report_utils.cc
@@ -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) {

0 comments on commit 42bbe58

Please sign in to comment.
You can’t perform that action at this time.