[Groonga-commit] groonga/groonga-query-log [master] extractor: use else expression for assigning value with no specified option

Back to archive index

Haruka Yoshihara null+****@clear*****
Mon Dec 17 14:17:36 JST 2012


Haruka Yoshihara	2012-12-17 14:17:36 +0900 (Mon, 17 Dec 2012)

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

  Log:
    extractor: use else expression for assigning value with no specified option

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

  Modified: lib/groonga/query-log/extractor.rb (+2 -1)
===================================================================
--- lib/groonga/query-log/extractor.rb    2012-12-17 14:12:00 +0900 (7ed9565)
+++ lib/groonga/query-log/extractor.rb    2012-12-17 14:17:36 +0900 (ef6f8e5)
@@ -123,8 +123,9 @@ module Groonga
             command_text = command.to_uri_format
           when "command"
             command_text = command.to_command_format
+          else
+            command_text = statistic.raw_command
           end
-          command_text ||= statistic.raw_command
           output.puts(command_text)
         end
       end
-------------- next part --------------
HTML����������������������������...
Download 



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