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 c502728 commit ebc43ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class MongoConfigManager extends BaseConfigManager {
* @returns {undefined}
*/
async _setupMongoClient(cb) {
const mongoUrl = constructConnectionString(this._mongoConfig);
const mongoUrl = constructConnectionString(this._mongoConfig);
try {
const client = await new MongoClient(mongoUrl, {
replicaSet: this._mongoConfig.replicaSet,
Expand Down
2 changes: 1 addition & 1 deletion lib/util/LocationStatusManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class LocationStatusManager {
this._locationStatusColl.insertOne({
_id: location,
value: locationConfig.getValue(),
}).finally(next);
}).then(() => next()).catch(next);

Check failure on line 176 in lib/util/LocationStatusManager.js

View workflow job for this annotation

GitHub Actions / tests

Trailing spaces not allowed
}, err => {
if (err) {
this._logger.error('Could not add new locations', {
Expand Down
8 changes: 3 additions & 5 deletions tests/functional/ingestion/IngestionReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,12 @@ describe('ingestion reader tests with mock', function fD() {
topic,
num_partitions: 1, // eslint-disable-line camelcase
replication_factor: 1, // eslint-disable-line camelcase
}).catch(err => {
})

Check failure on line 123 in tests/functional/ingestion/IngestionReader.js

View workflow job for this annotation

GitHub Actions / tests

Missing semicolon
} catch(err) {

Check warning on line 124 in tests/functional/ingestion/IngestionReader.js

View workflow job for this annotation

GitHub Actions / tests

Expected space(s) after "catch"
if (err.code !== 36) { // if topic does not already exist
throw err;
}
});
};

Check failure on line 128 in tests/functional/ingestion/IngestionReader.js

View workflow job for this annotation

GitHub Actions / tests

Unnecessary semicolon
producer = new BackbeatProducer({
kafka: testConfig.kafka,
topic: testConfig.extensions.ingestion.topic,
Expand Down Expand Up @@ -154,9 +155,6 @@ describe('ingestion reader tests with mock', function fD() {
const metadataMock = new MetadataMock();
httpServer = http.createServer((req, res) => metadataMock.onRequest(req, res))
.listen(testPort);
} catch (err) {
throw err;
}
});

after(async () => {
Expand Down

0 comments on commit ebc43ba

Please sign in to comment.