Skip to content

Commit e9d4f8d

Browse files
lint fix
1 parent 9ace7a0 commit e9d4f8d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cmap/connection.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
460460
let started = 0;
461461
if (
462462
this.monitorCommands ||
463-
(this.established && this.mongoLogger?.willLog(SeverityLevel.DEBUG, MongoLoggableComponent.COMMAND))
463+
(this.established &&
464+
this.mongoLogger?.willLog(SeverityLevel.DEBUG, MongoLoggableComponent.COMMAND))
464465
) {
465466
started = now();
466467
this.emitAndLogCommand(
@@ -489,7 +490,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
489490

490491
if (
491492
this.monitorCommands ||
492-
(this.established && this.mongoLogger?.willLog(SeverityLevel.DEBUG, MongoLoggableComponent.COMMAND))
493+
(this.established &&
494+
this.mongoLogger?.willLog(SeverityLevel.DEBUG, MongoLoggableComponent.COMMAND))
493495
) {
494496
this.emitAndLogCommand(
495497
this.monitorCommands,
@@ -512,7 +514,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
512514
} catch (error) {
513515
if (
514516
this.monitorCommands ||
515-
(this.established && this.mongoLogger?.willLog(SeverityLevel.DEBUG, MongoLoggableComponent.COMMAND))
517+
(this.established &&
518+
this.mongoLogger?.willLog(SeverityLevel.DEBUG, MongoLoggableComponent.COMMAND))
516519
) {
517520
if (error.name === 'MongoWriteConcernError') {
518521
this.emitAndLogCommand(

0 commit comments

Comments
 (0)