[Groonga-commit] groonga/grntest [master] Remove needless has_key?

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Nov 27 10:02:57 JST 2012


Kouhei Sutou	2012-11-27 10:02:57 +0900 (Tue, 27 Nov 2012)

  New Revision: 4138dbb480dd9e14ade736931cd1938750031068
  https://github.com/groonga/grntest/commit/4138dbb480dd9e14ade736931cd1938750031068

  Log:
    Remove needless has_key?

  Modified files:
    lib/grntest/tester.rb

  Modified: lib/grntest/tester.rb (+2 -4)
===================================================================
--- lib/grntest/tester.rb    2012-11-26 18:37:35 +0900 (208347e)
+++ lib/grntest/tester.rb    2012-11-27 10:02:57 +0900 (50e7ba8)
@@ -1485,10 +1485,8 @@ EOF
         if @current_command == "dump"
           @output_type = "groonga-command"
         else
-          @output_type =****@conte*****_type
-          if @current_arguments.has_key?(:output_type)
-            @output_type = @current_arguments[:output_type]
-          end
+          @output_type = @current_arguments[:output_type]
+          @output_type ||=****@conte*****_type
         end
       end
 
-------------- next part --------------
HTML����������������������������...
Download 



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