Skip to content

Commit

Permalink
fixup post reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Jan 5, 2025
1 parent ebc43ba commit a5803ab
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions extensions/notification/configManager/MongoConfigManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,30 +107,29 @@ class MongoConfigManager extends BaseConfigManager {
this._logger.debug('Connected to MongoDB', {
method: 'MongoConfigManager._setupMongoClient',
});

Check failure on line 110 in extensions/notification/configManager/MongoConfigManager.js

View workflow job for this annotation

GitHub Actions / tests

Trailing spaces not allowed
this._mongoClient = client.db(this._mongoConfig.database, {
ignoreUndefined: true,
});
this._metastore = this._mongoClient.collection(this._bucketMetastore);

try {
this._mongoVersion = await promisify(getMongoVersion)(this._mongoClient);
} catch (err) {
this._logger.error('Could not get MongoDB version', {
method: 'MongoConfigManager._setupMongoClient',
error: err.message,
});
return cb(err);
}

return cb();
} catch (err) {
this._logger.error('Could not connect to MongoDB', {
method: 'MongoConfigManager._setupMongoClient',
error: err.message,
});
return cb(err);
}
try {
this._mongoVersion = await promisify(getMongoVersion)(this._mongoClient);
} catch (err) {
this._logger.error('Could not get MongoDB version', {
method: 'MongoConfigManager._setupMongoClient',
error: err.message,
});
return cb(err);
}

Check failure on line 131 in extensions/notification/configManager/MongoConfigManager.js

View workflow job for this annotation

GitHub Actions / tests

Trailing spaces not allowed
return cb();
}

/**
Expand Down

0 comments on commit a5803ab

Please sign in to comment.