rb: Remove extra return statement
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 00:52:46 +0000 (00:52 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 00:52:46 +0000 (00:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668900 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/lib/thrift/deprecation.rb

index 242a859..7456f1c 100644 (file)
@@ -5,7 +5,7 @@ class Module
          alias_method :deprecated_#{method_name}, :#{method_name}
          def #{method_name}(*args, &block)
            $stderr.puts "Warning: calling deprecated method: #{self}.#{method_name}"
-           return deprecated_#{method_name}(*args, &block)
+           deprecated_#{method_name}(*args, &block)
          end
        END
       end