@@ -607,7 +607,7 @@ Connection.prototype.bulkWrite = async function bulkWrite(ops, options) {
607607
608608Connection . prototype . createCollections = async function createCollections ( options = { } ) {
609609 const result = { } ;
610- const errorsMap = { } ;
610+ const errorsMap = { } ;
611611
612612 const { continueOnError } = options ;
613613 delete options . continueOnError ;
@@ -734,7 +734,7 @@ Connection.prototype.transaction = function transaction(fn, options) {
734734 throw err ;
735735 } ) .
736736 finally ( ( ) => {
737- session . endSession ( ) . catch ( ( ) => { } ) ;
737+ session . endSession ( ) . catch ( ( ) => { } ) ;
738738 } ) ;
739739 } ) ;
740740} ;
@@ -1025,7 +1025,7 @@ Connection.prototype.openUri = async function openUri(uri, options) {
10251025
10261026 for ( const model of Object . values ( this . models ) ) {
10271027 // Errors handled internally, so safe to ignore error
1028- model . init ( ) . catch ( function $modelInitNoop ( ) { } ) ;
1028+ model . init ( ) . catch ( function $modelInitNoop ( ) { } ) ;
10291029 }
10301030
10311031 // `createConnection()` calls this `openUri()` function without
@@ -1061,7 +1061,7 @@ Connection.prototype.openUri = async function openUri(uri, options) {
10611061// to avoid uncaught exceptions when using `on('error')`. See gh-14377.
10621062Connection . prototype . on = function on ( event , callback ) {
10631063 if ( event === 'error' && this . $initialConnection ) {
1064- this . $initialConnection . catch ( ( ) => { } ) ;
1064+ this . $initialConnection . catch ( ( ) => { } ) ;
10651065 }
10661066 return EventEmitter . prototype . on . call ( this , event , callback ) ;
10671067} ;
@@ -1083,7 +1083,7 @@ Connection.prototype.on = function on(event, callback) {
10831083// to avoid uncaught exceptions when using `on('error')`. See gh-14377.
10841084Connection . prototype . once = function on ( event , callback ) {
10851085 if ( event === 'error' && this . $initialConnection ) {
1086- this . $initialConnection . catch ( ( ) => { } ) ;
1086+ this . $initialConnection . catch ( ( ) => { } ) ;
10871087 }
10881088 return EventEmitter . prototype . once . call ( this , event , callback ) ;
10891089} ;
@@ -1412,7 +1412,7 @@ Connection.prototype.model = function model(name, schema, collection, options) {
14121412 }
14131413
14141414 // Errors handled internally, so safe to ignore error
1415- model . init ( ) . catch ( function $modelInitNoop ( ) { } ) ;
1415+ model . init ( ) . catch ( function $modelInitNoop ( ) { } ) ;
14161416
14171417 return model ;
14181418 }
@@ -1439,7 +1439,7 @@ Connection.prototype.model = function model(name, schema, collection, options) {
14391439 }
14401440
14411441 if ( this === model . prototype . db
1442- && ( ! collection || collection === model . collection . name ) ) {
1442+ && ( ! collection || collection === model . collection . name ) ) {
14431443 // model already uses this connection.
14441444
14451445 // only the first model with this name is cached to allow
@@ -1626,8 +1626,8 @@ Connection.prototype.authMechanismDoesNotRequirePassword = function authMechanis
16261626 */
16271627Connection . prototype . optionsProvideAuthenticationData = function optionsProvideAuthenticationData ( options ) {
16281628 return ( options ) &&
1629- ( options . user ) &&
1630- ( ( options . pass ) || this . authMechanismDoesNotRequirePassword ( ) ) ;
1629+ ( options . user ) &&
1630+ ( ( options . pass ) || this . authMechanismDoesNotRequirePassword ( ) ) ;
16311631} ;
16321632
16331633/**
@@ -1689,7 +1689,7 @@ Connection.prototype.createClient = function createClient() {
16891689 */
16901690Connection . prototype . syncIndexes = async function syncIndexes ( options = { } ) {
16911691 const result = { } ;
1692- const errorsMap = { } ;
1692+ const errorsMap = { } ;
16931693
16941694 const { continueOnError } = options ;
16951695 delete options . continueOnError ;
0 commit comments