Skip to content

Commit

Permalink
Override eslint no-console for require('node-rdkafka') guard
Browse files Browse the repository at this point in the history
Bug: T266058
  • Loading branch information
ottomata committed Oct 20, 2020
1 parent 4b605bd commit 3b6023c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/kafka.js
Expand Up @@ -6,6 +6,7 @@ let kafka;
try {
kafka = require('node-rdkafka');
} catch (err) {
// eslint-disable-next-line no-console
console.error('node-rdkafka could not be required. Make sure it is installed properly.', err);
process.exit(1);
}
Expand Down

0 comments on commit 3b6023c

Please sign in to comment.