[Groonga-commit] droonga/express-droonga at 0023ac2 [master] Indent

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jan 9 20:45:32 JST 2014


YUKI Hiroshi	2014-01-09 20:45:32 +0900 (Thu, 09 Jan 2014)

  New Revision: 0023ac28d1cbd2e2b97c86ddf9d41c531b047130
  https://github.com/droonga/express-droonga/commit/0023ac28d1cbd2e2b97c86ddf9d41c531b047130

  Message:
    Indent

  Modified files:
    lib/adapter/http.js

  Modified: lib/adapter/http.js (+19 -19)
===================================================================
--- lib/adapter/http.js    2014-01-09 20:44:47 +0900 (85d9171)
+++ lib/adapter/http.js    2014-01-09 20:45:32 +0900 (7955b2a)
@@ -36,18 +36,18 @@ function createRequestResponseHandler(params) {
       }
 
     var processRequest = function(request, response) {
-    var wrappedConnection = new wrapper.DroongaProtocolConnectionWrapper(connection, callback, options);
-    if (definition.onRequest) {
-      try {
-        definition.onRequest(request, wrappedConnection, response);
-      } catch(error) {
-        wrappedConnection.destroy();
-        response.jsonp(error, 500);
+      var wrappedConnection = new wrapper.DroongaProtocolConnectionWrapper(connection, callback, options);
+      if (definition.onRequest) {
+        try {
+          definition.onRequest(request, wrappedConnection, response);
+        } catch(error) {
+          wrappedConnection.destroy();
+          response.jsonp(error, 500);
+        }
+      } else {
+        wrappedConnection.emit(commandName, request.query);
       }
-    } else {
-      wrappedConnection.emit(commandName, request.query);
-    }
-    }
+    };
     if (typeof definition.authorize == 'function')
       definition.authorize(processRequest, request, response);
     else
@@ -70,14 +70,14 @@ function createGenericHandler(params) {
       timeout: definition.timeout || null
     };
     var processRequest = function(request, response) {
-    var wrappedConnection = new wrapper.DroongaProtocolConnectionWrapper(connection, options);
-    try {
-      definition.onHandle(request, response, wrappedConnection);
-    } catch(error) {
-      wrappedConnection.destroy();
-      response.jsonp(error, 500);
-    }
-    }
+      var wrappedConnection = new wrapper.DroongaProtocolConnectionWrapper(connection, options);
+      try {
+        definition.onHandle(request, response, wrappedConnection);
+      } catch(error) {
+        wrappedConnection.destroy();
+        response.jsonp(error, 500);
+      }
+    };
     if (typeof definition.authorize == 'function')
       definition.authorize(processRequest, request, response);
     else
-------------- next part --------------
HTML����������������������������...
Download 



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