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

Commit 28eed7d

Browse files
committed
Remove redundant indentations
1 parent 68a9d4c commit 28eed7d

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

lib/rspec/core/formatters/exception_presenter.rb

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,20 @@ def exception_class_name(exception=@exception)
125125
end
126126

127127
def failure_lines
128-
@failure_lines ||=
129-
begin
130-
lines = []
131-
lines << failure_slash_error_line unless (description == failure_slash_error_line)
132-
lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/
133-
encoded_string(exception.message.to_s).split("\n").each do |line|
134-
lines << " #{line}"
135-
end
136-
unless @extra_failure_lines.empty?
137-
lines << ''
138-
lines.concat(@extra_failure_lines)
139-
lines << ''
140-
end
141-
lines
128+
@failure_lines ||= begin
129+
lines = []
130+
lines << failure_slash_error_line unless (description == failure_slash_error_line)
131+
lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/
132+
encoded_string(exception.message.to_s).split("\n").each do |line|
133+
lines << " #{line}"
142134
end
135+
unless @extra_failure_lines.empty?
136+
lines << ''
137+
lines.concat(@extra_failure_lines)
138+
lines << ''
139+
end
140+
lines
141+
end
143142
end
144143

145144
def add_shared_group_lines(lines, colorizer)

0 commit comments

Comments
 (0)