[Groonga-commit] groonga/gcs [master] Don't return [undefined] as the result of Cliet#getDomainStatuses if there is no domain (again)

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 14 18:25:54 JST 2012


YUKI Hiroshi	2012-11-14 18:25:54 +0900 (Wed, 14 Nov 2012)

  New Revision: e6a8f97cb37b9e3cbfbfd7605507de4fa32d5324
  https://github.com/groonga/gcs/commit/e6a8f97cb37b9e3cbfbfd7605507de4fa32d5324

  Log:
    Don't return [undefined] as the result of Cliet#getDomainStatuses if there is no domain (again)

  Modified files:
    lib/client.js

  Modified: lib/client.js (+1 -2)
===================================================================
--- lib/client.js    2012-11-14 18:23:12 +0900 (8b5c6fe)
+++ lib/client.js    2012-11-14 18:25:54 +0900 (87ad127)
@@ -185,8 +185,7 @@ Client.prototype = {
                .DescribeDomainsResponse
                .DescribeDomainsResult
                .DomainStatusList;
-          var domainStatuses = domainStatuseList ?
-                                 domainStatuseList.member : [];
+          var domainStatuses = domainStatuseList && domainStatuseList.member || [];
           if (!Array.isArray(domainStatuses))
             domainStatuses = [domainStatuses];
           callback(null, domainStatuses);
-------------- next part --------------
HTML����������������������������...
Download 



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