[Groonga-commit] groonga/grntest [master] Suppress a warning

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 6日 (水) 13:25:05 JST


Haruka Yoshihara	2012-06-06 13:25:05 +0900 (Wed, 06 Jun 2012)

  New Revision: 6c9db286badc7f6556644e5c6c1fff8b2e5a685a

  Log:
    Suppress a warning
    
    .../lib/groonga/tester.rb:140: warning: shadowing outer local variable - test_files

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+1 -1)
===================================================================
--- lib/groonga/tester.rb    2012-06-06 11:27:52 +0900 (19b1af2)
+++ lib/groonga/tester.rb    2012-06-06 13:25:05 +0900 (39162a2)
@@ -137,7 +137,7 @@ module Groonga
       grouped_test_files = test_files.group_by do |test_file|
         test_file.dirname.relative_path_from(test_directory)
       end
-      grouped_test_files.sort_by do |directory, test_files|
+      grouped_test_files.sort_by do |directory, _|
         directory.to_s
       end
     end




Groonga-commit メーリングリストの案内
Back to archive index