From 5c615a2fe109ccb16f9e76e73f7cf933abd46cc8 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Mon, 5 Jun 2023 16:28:44 +1000 Subject: [PATCH] Use `strip.empty?` to account for arbitrary number of spaces --- bin/annotate_test_failures | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/annotate_test_failures b/bin/annotate_test_failures index 66159e93..26234baf 100755 --- a/bin/annotate_test_failures +++ b/bin/annotate_test_failures @@ -70,7 +70,7 @@ class TestFailure times = @count > 1 ? " (#{@count} times)" : '' # Do not render a code block for the failure details if there are none - formatted_details = if @details.empty? || @details == '' + formatted_details = if @details.strip.empty? '' else <<~DETAILS