From 732da37263c756cd49a8603d1e4ff331b6fedf15 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 18 Jan 2024 21:26:15 +0400 Subject: [PATCH] backtrace return unless positive --- lib/formatters/basic_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/formatters/basic_formatter.rb b/lib/formatters/basic_formatter.rb index 1e9d32d..7a508b1 100644 --- a/lib/formatters/basic_formatter.rb +++ b/lib/formatters/basic_formatter.rb @@ -170,7 +170,7 @@ class BasicFormatter < SemanticLogger::Formatters::Color # rubocop:disable Metri end def backtrace(stack) - nil unless stack.count.positive? + return unless stack.count.positive? "\n#{before_message} #{ANSI_ERROR}↳ #{stack.join("\n#{before_message} #{ANSI_ERROR}↳ ")}#{color_map.clear}" end