[Groonga-commit] groonga/groonga-admin at 7f4eee6 [master] Remove needless checks

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Sep 27 15:20:25 JST 2016


Kouhei Sutou	2016-09-27 15:20:25 +0900 (Tue, 27 Sep 2016)

  New Revision: 7f4eee6487da21ebda5370c7e9678e0b31c44338
  https://github.com/groonga/groonga-admin/commit/7f4eee6487da21ebda5370c7e9678e0b31c44338

  Message:
    Remove needless checks

  Modified files:
    app/scripts/services/schema-loader.js

  Modified: app/scripts/services/schema-loader.js (+2 -8)
===================================================================
--- app/scripts/services/schema-loader.js    2016-09-27 15:19:32 +0900 (59efa3c)
+++ app/scripts/services/schema-loader.js    2016-09-27 15:20:25 +0900 (b0477ef)
@@ -53,15 +53,9 @@ angular.module('groongaAdminApp')
         table.normalizer   = rawTable.normalizer && rawTable.normalizer.name;
         table.type         = rawTable.type;
 
-        table.flags = [];
-        if (rawTable.command &&
-            rawTable.command.arguments &&
-            rawTable.command.arguments.flags)
-          table.flags = rawTable.command.arguments.flags.split('|');
+        table.flags = rawTable.command.arguments.flags.split('|');
 
-        table.tokenFilters = '';
-        if (rawTable.token_filters)
-          table.tokenFilters = rawTable.token_filters.join('|'); // XXX what is the correct delimiter?
+        table.tokenFilters = rawTable.token_filters.join(',');
 
         table.keyType = null;
         if (rawTable.key_type) {
-------------- next part --------------
HTML����������������������������...
Download 



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