Skip to content

Commit

Permalink
Use strip.empty? to account for arbitrary number of spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Jun 5, 2023
1 parent 7216c19 commit 5c615a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/annotate_test_failures
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c615a2

Please sign in to comment.