Skip to content

Commit 252e94f

Browse files
committed
Remove explicit return from ensure clause
* There is a subtle difference in functionality, but it doesn't affect the implementation here. * See #14 (comment) for more information. [#14]
1 parent 38577a1 commit 252e94f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/support/capture_stdout.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def capture_stdout
55
real_stdout = $stdout
66
$stdout = captured_output
77
yield
8+
captured_output.string
89
ensure
910
$stdout = real_stdout
10-
return captured_output.string
1111
end

0 commit comments

Comments
 (0)