summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bacon.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb
index 3277503..af754d4 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -192,7 +192,7 @@ end
 
 class Proc
   def raise?(*exceptions)
-    exceptions << RuntimeError if exceptions.empty?
+    exceptions = [RuntimeError]  if exceptions.empty?
     call
 
   # Only to work in 1.9.0, rescue with splat doesn't work there right now