[Groonga-commit] ranguba/groonga-client at a901676 [master] index-check: simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 30 14:55:38 JST 2017


Kouhei Sutou	2017-10-30 14:55:38 +0900 (Mon, 30 Oct 2017)

  New Revision: a9016765bef94a9bbaa3915e81eacb29ff01f177
  https://github.com/ranguba/groonga-client/commit/a9016765bef94a9bbaa3915e81eacb29ff01f177

  Message:
    index-check: simplify

  Modified files:
    lib/groonga/client/command-line/groonga-client-index-check.rb

  Modified: lib/groonga/client/command-line/groonga-client-index-check.rb (+1 -3)
===================================================================
--- lib/groonga/client/command-line/groonga-client-index-check.rb    2017-10-30 14:54:56 +0900 (12c682e)
+++ lib/groonga/client/command-line/groonga-client-index-check.rb    2017-10-30 14:55:38 +0900 (e52f360)
@@ -136,15 +136,13 @@ module Groonga
           end
 
           def list_tokens(table_name)
-            keys = []
             response = execute_command(:select,
                                        :table => table_name,
                                        :limit => -1,
                                        :output_columns => :_key)
-            keys = response.records.collect do |record|
+            response.records.collect do |record|
               record["_key"]
             end
-            keys
           end
 
           def verify_tokens(table_name, old_column, new_column, tokens)
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171030/09ac9a2b/attachment-0001.htm 



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