[Groonga-commit] groonga/express-kotoumi [master] Fix typo: commandSets => commandSet

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Feb 5 18:05:03 JST 2013


YUKI Hiroshi	2013-02-05 18:05:03 +0900 (Tue, 05 Feb 2013)

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

  Log:
    Fix typo: commandSets => commandSet

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

  Modified: lib/frontend/rest-adaptor.js (+4 -4)
===================================================================
--- lib/frontend/rest-adaptor.js    2013-02-05 18:03:46 +0900 (5e6d0c5)
+++ lib/frontend/rest-adaptor.js    2013-02-05 18:05:03 +0900 (32ebc8c)
@@ -56,11 +56,11 @@ exports.register = function(application, params) {
   var commandSets = [defaultCommands].concat(params.plugins || []);
   var unifiedCommandSet = {};
   commandSets.forEach(function(commandSet) {
-    if (typeof commandSets == 'string')
-      commandSets = require(commandSets);
+    if (typeof commandSet == 'string')
+      commandSet = require(commandSet);
 
-    Object.keys(commandSets).forEach(function(command) {
-      var definition = commandSets[command];
+    Object.keys(commandSet).forEach(function(command) {
+      var definition = commandSet[command];
       if (!definition.method) return; // ignore non-REST command
       unifiedCommandSet[command] = definition;
     });
-------------- next part --------------
HTML����������������������������...
Download 



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