[Groonga-commit] groonga/gcs [master] Fix wrong option value use

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Aug 14 12:34:11 JST 2012


Kouhei Sutou	2012-08-14 12:34:11 +0900 (Tue, 14 Aug 2012)

  New Revision: 0717d6f753addf2cf342994511e38c531e38f9ee
  https://github.com/groonga/gcs/commit/0717d6f753addf2cf342994511e38c531e38f9ee

  Log:
    Fix wrong option value use

  Modified files:
    lib/server.js

  Modified: lib/server.js (+1 -1)
===================================================================
--- lib/server.js    2012-08-14 12:13:31 +0900 (3afbebf)
+++ lib/server.js    2012-08-14 12:34:11 +0900 (ac28a73)
@@ -4,7 +4,7 @@ var api = require('./api');
 var dashboard = require('./dashboard');
 
 exports.createServer = function (config) {
-  var context = new nroonga.Context(config.context || config.databasePath);
+  var context = config.context || new nroonga.Context(config.databasePath);
   var application = express.createServer();
   application.use(express.bodyParser());
   application.set('views', __dirname + '/../views');
-------------- next part --------------
HTML����������������������������...
Download 



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