[logaling-commit] logaling/logaling-command [use-offline-index] simplify method

Back to archive index

null+****@clear***** null+****@clear*****
Fri Mar 23 13:55:38 JST 2012


SUZUKI Miho	2012-03-23 13:55:38 +0900 (Fri, 23 Mar 2012)

  New Revision: 824ea7d129d49143dd4ed80a7462159821879727

  Log:
    simplify method

  Modified files:
    lib/logaling/glossary_db.rb

  Modified: lib/logaling/glossary_db.rb (+1 -5)
===================================================================
--- lib/logaling/glossary_db.rb    2012-03-23 13:41:34 +0900 (ffe7add)
+++ lib/logaling/glossary_db.rb    2012-03-23 13:55:38 +0900 (cfe5de3)
@@ -413,11 +413,7 @@ module Logaling
     end
 
     def offline_index?
-      if ENV["LOGALING_OFFLINE_INDEX"] != "no"
-        true
-      else
-        false
-      end
+      ENV["LOGALING_OFFLINE_INDEX"] != "no"
     end
   end
 end




More information about the logaling-commit mailing list
Back to archive index