From 4387a735142934b2e675bec156aaa4f1a891a61e Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 11 Nov 2017 14:41:22 +0100 Subject: [PATCH] src: remove superfluous check in backtrace_posix.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The error check doesn't matter because a failure would be ignored as part of the loop condition. PR-URL: https://github.com/nodejs/node/pull/16950 Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso Reviewed-By: Refael Ackermann Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil --- src/backtrace_posix.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backtrace_posix.cc b/src/backtrace_posix.cc index 0c69d820e7212a..c7a6bea1938a7c 100644 --- a/src/backtrace_posix.cc +++ b/src/backtrace_posix.cc @@ -25,9 +25,6 @@ void DumpBacktrace(FILE* fp) { #if HAVE_EXECINFO_H void* frames[256]; const int size = backtrace(frames, arraysize(frames)); - if (size <= 0) { - return; - } for (int i = 1; i < size; i += 1) { void* frame = frames[i]; fprintf(fp, "%2d: ", i);