Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit d877297

Browse files
committed
fixup! Mute Rubocop
There won't be three levels of nesting in RSpec 4 when we remove the outer check.
1 parent a1f5420 commit d877297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/core/formatters/exception_presenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def formatted_cause(exception)
5757

5858
unless last_cause.backtrace.nil? || last_cause.backtrace.empty?
5959
lines = backtrace_formatter.format_backtrace(last_cause.backtrace, example.metadata)
60-
lines = [lines[0]] unless RSpec.configuration.full_cause_backtrace
60+
lines = [lines[0]] unless RSpec.configuration.full_cause_backtrace # rubocop:disable Metrics/BlockNesting
6161

6262
lines.each do |line|
6363
cause << (" #{line}")

0 commit comments

Comments
 (0)