[Groonga-commit] groonga/gcs at 2941643 [master] Remove needless duplicated check

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Mar 2 15:32:11 JST 2014


Kouhei Sutou	2014-03-02 15:32:11 +0900 (Sun, 02 Mar 2014)

  New Revision: 29416434d9e5f181f21064f3bca18299e97a4b17
  https://github.com/groonga/gcs/commit/29416434d9e5f181f21064f3bca18299e97a4b17

  Message:
    Remove needless duplicated check

  Modified files:
    lib/database/index-field.js

  Modified: lib/database/index-field.js (+0 -2)
===================================================================
--- lib/database/index-field.js    2014-03-02 15:31:56 +0900 (a895cda)
+++ lib/database/index-field.js    2014-03-02 15:32:11 +0900 (ef2d423)
@@ -154,8 +154,6 @@ IndexField.prototype = {
   validate: function() {
     if (typeof this.name != 'string')
       throw new ValidationError('field name must be a string');
-    if (typeof this._type != 'string')
-      throw new ValidationError('field type must be a string');
 
     var errors = collectTypeValidationErrors(this._type)
                    .concat(collectNameValidationErrors(this.name));
-------------- next part --------------
HTML����������������������������...
Download 



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