[Groonga-commit] groonga/express-kotoumi [master] Return on new line next to "if (...)", for step by step running

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 6 11:55:31 JST 2013


YUKI Hiroshi	2013-02-06 11:55:31 +0900 (Wed, 06 Feb 2013)

  New Revision: e6c9f5d42b0b8fbdc5e5b6ab1a8a5517c18eb920
  https://github.com/groonga/express-kotoumi/commit/e6c9f5d42b0b8fbdc5e5b6ab1a8a5517c18eb920

  Log:
    Return on new line next to "if (...)", for step by step running

  Modified files:
    lib/frontend/rest-adaptor.js

  Modified: lib/frontend/rest-adaptor.js (+4 -2)
===================================================================
--- lib/frontend/rest-adaptor.js    2013-02-05 19:12:39 +0900 (a2998be)
+++ lib/frontend/rest-adaptor.js    2013-02-06 11:55:31 +0900 (a44eae8)
@@ -64,7 +64,8 @@ exports.register = function(application, params) {
 
     Object.keys(commandSet).forEach(function(command) {
       var definition = commandSet[command];
-      if (!definition.method) return; // ignore non-REST command
+      if (!definition.method) // ignore non-REST command
+        return;
       unifiedCommandSet[command] = definition;
     });
   });
@@ -72,7 +73,8 @@ exports.register = function(application, params) {
   var registeredCommands = [];
   Object.keys(unifiedCommandSet).forEach(function(command) {
     var definition = unifiedCommandSet[command];
-    if (!definition.method) return; // ignore not a command definition
+    if (!definition.method) // ignore not a command definition
+      return;
     var method = getRegisterationMethod(definition.method);
     var handler = createHandler({
       connection:      connection,
-------------- next part --------------
HTML����������������������������...
Download 



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