[Groonga-commit] groonga/groonga-query-log [master] Suppress warnings

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Fri Jan 18 13:57:13 JST 2013


Kouhei Sutou	2013-01-18 13:57:13 +0900 (Fri, 18 Jan 2013)

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

  Log:
    Suppress warnings
    
    lib/groonga/query-log/extractor.rb:177: warning: shadowing outer local variable - command
    lib/groonga/query-log/extractor.rb:181: warning: shadowing outer local variable - command

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

  Modified: lib/groonga/query-log/extractor.rb (+4 -4)
===================================================================
--- lib/groonga/query-log/extractor.rb    2013-01-18 13:50:59 +0900 (55136a1)
+++ lib/groonga/query-log/extractor.rb    2013-01-18 13:57:13 +0900 (d861e64)
@@ -170,15 +170,15 @@ module Groonga
 
       def target?(command)
         name = command.name
-        commands =****@optio*****
+        target_commands =****@optio*****
         exclude_commands =****@optio*****_commands
 
-        unless commands.empty?
-          return commands.any? {|command| command === name}
+        unless target_commands.empty?
+          return target_commands.any? {|target_command| target_command === name}
         end
 
         unless exclude_commands.empty?
-          return (not exclude_commands.any? {|command| command === name})
+          return (not exclude_commands.any? {|exclude_command| exclude_command === name})
         end
 
         true
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index