Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoazeredo-quintoandar committed Nov 12, 2021
1 parent 38cb111 commit c0539ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/node-kafka-consumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ class KafkaConsumer {

validateConfigs() {
const expectedConfigs = ['kafkaHost', 'groupId'];
const missingConfigs = _.filter(expectedConfigs, expectedConf =>
!Object.prototype.hasOwnProperty.call(this.configs, expectedConf));
const missingConfigs = _.filter(expectedConfigs, (expectedConf) => !Object
.prototype
.hasOwnProperty
.call(this.configs, expectedConf));
if (missingConfigs.length > 0) {
throw new Error(`Missing Consumer Configs ${missingConfigs}`);
}
Expand Down

0 comments on commit c0539ca

Please sign in to comment.