[Groonga-commit] groonga/groonga-query-log [master] extractor: suppress warning

Back to archive index

Haruka Yoshihara null+****@clear*****
Tue Dec 18 13:43:56 JST 2012


Haruka Yoshihara	2012-12-18 13:43:56 +0900 (Tue, 18 Dec 2012)

  New Revision: a82185f71e35b166199b990519af479e455e2a98
  https://github.com/groonga/groonga-query-log/commit/a82185f71e35b166199b990519af479e455e2a98

  Log:
    extractor: suppress warning
    
    lib/groonga/query-log/extractor.rb:70: warning: shadowing outer local variable - log

  Modified files:
    lib/groonga/query-log/extractor.rb

  Modified: lib/groonga/query-log/extractor.rb (+2 -2)
===================================================================
--- lib/groonga/query-log/extractor.rb    2012-12-18 11:54:59 +0900 (f6d5771)
+++ lib/groonga/query-log/extractor.rb    2012-12-18 13:43:56 +0900 (ec67b2b)
@@ -65,8 +65,8 @@ module Groonga
 
         if log.nil?
           log_paths.each do |log_path|
-            File.open(log_path) do |log|
-              extract(log, output)
+            File.open(log_path) do |log_file|
+              extract(log_file, output)
             end
           end
         else
-------------- next part --------------
HTML����������������������������...
Download 



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