Skip to content

Commit

Permalink
report: remove unnecessary intermediate variable
Browse files Browse the repository at this point in the history
PR-URL: #25597
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Denys Otrishko <[email protected]>
  • Loading branch information
cjihrig authored and targos committed Jan 24, 2019
1 parent 2b18582 commit 42bbe58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/node_report_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 42bbe58

Please sign in to comment.