Skip to content

Commit 42bbe58

Browse files
cjihrigtargos
authored andcommitted
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>
1 parent 2b18582 commit 42bbe58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node_report_utils.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,7 @@ void WalkHandle(uv_handle_t* h, void* arg) {
232232
if (h->type == UV_TCP || h->type == UV_NAMED_PIPE || h->type == UV_TTY ||
233233
h->type == UV_UDP || h->type == UV_POLL) {
234234
uv_os_fd_t fd_v;
235-
uv_os_fd_t* fd = &fd_v;
236-
int rc = uv_fileno(h, fd);
235+
int rc = uv_fileno(h, &fd_v);
237236
// uv_os_fd_t is an int on Unix and HANDLE on Windows.
238237
#ifndef _WIN32
239238
if (rc == 0) {

0 commit comments

Comments
 (0)