We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5cf09f commit 2211ccfCopy full SHA for 2211ccf
src/mongo_client.ts
@@ -361,10 +361,9 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> {
361
362
this[kOptions] = parseOptions(url, this, options);
363
364
- const shouldSetLogger =
365
- Object.values(this[kOptions].mongoLoggerOptions.componentSeverities).filter(
366
- value => value !== SeverityLevel.OFF
367
- ).length !== 0;
+ const shouldSetLogger = Object.values(
+ this[kOptions].mongoLoggerOptions.componentSeverities
+ ).some(value => value !== SeverityLevel.OFF);
368
this.mongoLogger = shouldSetLogger
369
? new MongoLogger(this[kOptions].mongoLoggerOptions)
370
: undefined;
0 commit comments