mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
DB.js: remove else clause, since we are already exiting early
No functional changes.
This commit is contained in:
parent
3c78ada8da
commit
39f271bfed
1 changed files with 22 additions and 22 deletions
|
@ -45,7 +45,8 @@ exports.init = function() {
|
|||
console.error("ERROR: Problem while initalizing the database");
|
||||
console.error(err.stack ? err.stack : err);
|
||||
process.exit(1);
|
||||
} else {
|
||||
}
|
||||
|
||||
// everything ok, set up Promise-based methods
|
||||
['get', 'set', 'findKeys', 'getSub', 'setSub', 'remove', 'doShutdown'].forEach(fn => {
|
||||
exports[fn] = util.promisify(db[fn].bind(db));
|
||||
|
@ -67,7 +68,6 @@ exports.init = function() {
|
|||
// exposed for those callers that need the underlying raw API
|
||||
exports.db = db;
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue