Skip to content

Commit

Permalink
minor refactoring: use implicit return
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed May 21, 2012
1 parent 38b247a commit 123169e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/matchers/built_in/base_matcher.rb
Expand Up @@ -28,10 +28,10 @@ def match_unless_raises(*exceptions)
exceptions.unshift Exception if exceptions.empty?
begin
yield
true
rescue *exceptions => @rescued_exception
return false
false
end
true
end

def failure_message_for_should
Expand Down

0 comments on commit 123169e

Please sign in to comment.