Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Dropping an eval() call for send().

  • Loading branch information...
commit fb16a2f9bc45e22aa2b04d1d71ecb19fa3ea3c42 1 parent 9b77daa
James Edward Gray II authored October 13, 2009

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/rufus/tokyo/cabinet/abstract.rb
4  lib/rufus/tokyo/cabinet/abstract.rb
@@ -640,8 +640,8 @@ def do_call_misc (function, list_pointer)
640 640
 
641 641
     def libcall (lib_method, *args)
642 642
 
643  
-      (eval(%{ lib.#{lib_method}(@db, *args) }) == 1) or \
644  
-        raise TokyoError.new("call to #{lib_method} failed")
  643
+      raise TokyoError.new("call to #{lib_method} failed") \
  644
+        unless lib.send(lib_method, @db, *args) == 1
645 645
     end
646 646
 
647 647
   end

0 notes on commit fb16a2f

Please sign in to comment.
Something went wrong with that request. Please try again.