[Groonga-commit] groonga/groonga-admin at 29b9041 [master] Use "==="

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Sep 27 14:16:06 JST 2016


Kouhei Sutou	2016-09-27 14:16:06 +0900 (Tue, 27 Sep 2016)

  New Revision: 29b9041915ba86e260f349ed7f305f44b789ae87
  https://github.com/groonga/groonga-admin/commit/29b9041915ba86e260f349ed7f305f44b789ae87

  Message:
    Use "==="

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

  Modified: app/scripts/services/schema-loader.js (+8 -8)
===================================================================
--- app/scripts/services/schema-loader.js    2016-09-27 14:15:19 +0900 (4c5a973)
+++ app/scripts/services/schema-loader.js    2016-09-27 14:16:06 +0900 (7beaad6)
@@ -71,10 +71,10 @@ angular.module('groongaAdminApp')
           };
         }
 
-        table.isArray           = table.type == 'array';
-        table.isHashTable       = table.type == 'hash table';
-        table.isPatriciaTrie    = table.type == 'patricia trie';
-        table.isDoubleArrayTrie = table.type == 'double attay trie';
+        table.isArray           = table.type === 'array';
+        table.isHashTable       = table.type === 'hash table';
+        table.isPatriciaTrie    = table.type === 'patricia trie';
+        table.isDoubleArrayTrie = table.type === 'double attay trie';
         table.hasKey            = !table.isArray;
 
         table.range  = table.valueType; // for backward compatibility
@@ -129,12 +129,12 @@ angular.module('groongaAdminApp')
           column.valueType = {
             name: rawColumn.value_type.name,
             isTextType: isTextType(rawColumn.value_type.name),
-            isReferenceType: rawColumn.value_type.type == 'reference'
+            isReferenceType: rawColumn.value_type.type === 'reference'
           };
 
-        column.isScalar = column.type == 'scalar';
-        column.isVector = column.type == 'vector';
-        column.isIndex  = column.type == 'index';
+        column.isScalar = column.type === 'scalar';
+        column.isVector = column.type === 'vector';
+        column.isIndex  = column.type === 'index';
 
         column.range  = column.valueType && column.valueType.name; // for backward compatibility
         column.domain = rawTable.name; // for backward compatibility
-------------- next part --------------
HTML����������������������������...
Download 



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