db/DB: removed white spaces

This commit is contained in:
booo 2011-12-22 11:55:21 +01:00
parent 07626170d4
commit 2584f023d2

View file

@ -1,5 +1,5 @@
/** /**
* The DB Module provides a database initalized with the settings * The DB Module provides a database initalized with the settings
* provided by the settings module * provided by the settings module
*/ */
@ -33,14 +33,14 @@ exports.db = null;
/** /**
* Initalizes the database with the settings provided by the settings module * Initalizes the database with the settings provided by the settings module
* @param {Function} callback * @param {Function} callback
*/ */
exports.init = function(callback) exports.init = function(callback)
{ {
//initalize the database async //initalize the database async
db.init(function(err) db.init(function(err)
{ {
//there was an error while initializing the database, output it and stop //there was an error while initializing the database, output it and stop
if(err) if(err)
{ {
console.error("ERROR: Problem while initalizing the database"); console.error("ERROR: Problem while initalizing the database");
@ -50,8 +50,8 @@ exports.init = function(callback)
//everything ok //everything ok
else else
{ {
exports.db = db; exports.db = db;
callback(null); callback(null);
} }
}); });
} };