Tweak the code to turn on Deprecation to make rcov happy
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:12:37 +0000 (01:12 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:12:37 +0000 (01:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668977 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/lib/thrift/deprecation.rb

index 094769b..38161b7 100644 (file)
@@ -1,9 +1,7 @@
 # provide a backwards-compatible wrapper API and deprecate it
 
 module Thrift
-  unless const_defined?(:DEPRECATION)
-    DEPRECATION = true
-  end
+  DEPRECATION = true unless const_defined?(:DEPRECATION)
 end
 
 class Module