* Remove whitespace generation and rely on default printing Changes to printing: * Add newline after last empty SwitchCase * Add newlines around block comments if they are non-flow comments or contain newlines * Fix a few more fixtures
16 lines
310 B
JavaScript
16 lines
310 B
JavaScript
module.exports = {
|
|
init: function () {
|
|
var _this = this;
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
MongoClient.connect(config.mongodb, function (err, db) {
|
|
if (err) {
|
|
return reject(err);
|
|
}
|
|
|
|
_this.db = db;
|
|
resolve(_this);
|
|
});
|
|
});
|
|
}
|
|
}; |