[Groonga-commit] groonga/express-kotoumi [master] Rename variable to more suitable one: unifiedCommandSets => unifiedCommandSet

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Feb 5 17:30:25 JST 2013


YUKI Hiroshi	2013-02-05 17:30:25 +0900 (Tue, 05 Feb 2013)

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

  Log:
    Rename variable to more suitable one: unifiedCommandSets => unifiedCommandSet

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

  Modified: lib/frontend/rest-adaptor.js (+4 -4)
===================================================================
--- lib/frontend/rest-adaptor.js    2013-02-05 17:19:32 +0900 (c57cfd5)
+++ lib/frontend/rest-adaptor.js    2013-02-05 17:30:25 +0900 (8cf844e)
@@ -54,19 +54,19 @@ exports.register = function(application, params) {
   prefix = prefix.replace(/\/$/, '');
 
   var commandSets = [defaultCommands].concat(params.plugins || []);
-  var unifiedCommandSets = {};
+  var unifiedCommandSet = {};
   commandSets.forEach(function(commandSet) {
     if (typeof commandSets == 'string')
       commandSets = require(commandSets);
 
     Object.keys(commandSets).forEach(function(command) {
       var definition = commandSets[command];
-      unifiedCommandSets[command] = definition;
+      unifiedCommandSet[command] = definition;
     });
   });
 
-  Object.keys(unifiedCommandSets).forEach(function(command) {
-    var definition = unifiedCommandSets[command];
+  Object.keys(unifiedCommandSet).forEach(function(command) {
+    var definition = unifiedCommandSet[command];
     var method = getRegisterationMethod(definition.method);
     application[method](
       prefix + definition.path,
-------------- next part --------------
HTML����������������������������...
Download 



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