Skip to content

Commit 2211ccf

Browse files
partial PR requested changes:
1 parent f5cf09f commit 2211ccf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/mongo_client.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,9 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> {
361361

362362
this[kOptions] = parseOptions(url, this, options);
363363

364-
const shouldSetLogger =
365-
Object.values(this[kOptions].mongoLoggerOptions.componentSeverities).filter(
366-
value => value !== SeverityLevel.OFF
367-
).length !== 0;
364+
const shouldSetLogger = Object.values(
365+
this[kOptions].mongoLoggerOptions.componentSeverities
366+
).some(value => value !== SeverityLevel.OFF);
368367
this.mongoLogger = shouldSetLogger
369368
? new MongoLogger(this[kOptions].mongoLoggerOptions)
370369
: undefined;

0 commit comments

Comments
 (0)