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

Commit 8c9341c

Browse files
committed
Remove redundant indentations
1 parent 9bba372 commit 8c9341c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lib/rspec/core/formatters/exception_presenter.rb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,15 @@ def exception_class_name(exception=@exception)
124124
end
125125

126126
def failure_lines
127-
@failure_lines ||=
128-
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}"
134-
end
135-
lines
127+
@failure_lines ||= begin
128+
lines = []
129+
lines << failure_slash_error_line unless (description == failure_slash_error_line)
130+
lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/
131+
encoded_string(exception.message.to_s).split("\n").each do |line|
132+
lines << " #{line}"
136133
end
134+
lines
135+
end
137136
end
138137

139138
def add_shared_group_lines(lines, colorizer)

0 commit comments

Comments
 (0)