[Groonga-commit] droonga/droonga-engine at 4ed36ef [master] Suppress warning

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 7 14:03:25 JST 2014


YUKI Hiroshi	2014-11-07 14:03:25 +0900 (Fri, 07 Nov 2014)

  New Revision: 4ed36efd317bbaf904deb27ef8f41a13da3858e3
  https://github.com/droonga/droonga-engine/commit/4ed36efd317bbaf904deb27ef8f41a13da3858e3

  Message:
    Suppress warning
    
    $ bundle exec rake test:unit
    /usr/bin/ruby2.0 /home/piro/groonga/droonga-engine/test/unit/run-test.rb
    /home/piro/groonga/droonga-engine/lib/droonga/catalog/base.rb:49: warning: shadowing outer local variable - old_db_path

  Modified files:
    lib/droonga/catalog/base.rb

  Modified: lib/droonga/catalog/base.rb (+2 -2)
===================================================================
--- lib/droonga/catalog/base.rb    2014-11-07 13:52:39 +0900 (4d1afa1)
+++ lib/droonga/catalog/base.rb    2014-11-07 14:03:25 +0900 (a3fdc63)
@@ -42,11 +42,11 @@ module Droonga
         return if current_db_path.exist?
 
         common_base_path = Pathname(@base_path)
-        old_db_path = {
+        old_db_paths = {
           :top_level     => common_base_path + device + name + "db",
           :singular_form => common_base_path + device + "database" + name + "db",
         }
-        old_db_path.each do |type, old_db_path|
+        old_db_paths.each do |type, old_db_path|
           if old_db_path.exist?
             FileUtils.mkdir_p(current_db_path.parent.parent)
             FileUtils.move(old_db_path.parent, current_db_path.parent)
-------------- next part --------------
HTML����������������������������...
下載 



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