File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
test/tools/mongodb-mock/src Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
750750 }
751751
752752 auth ( credentials ?: MongoCredentials , callback ?: Callback ) : void {
753- if ( typeof credentials === 'function' ) ( callback = credentials ) , ( credentials = undefined ) ;
753+ if ( typeof credentials === 'function' ) ( ( callback = credentials ) , ( credentials = undefined ) ) ;
754754 if ( typeof callback === 'function' ) callback ( undefined , true ) ;
755755 }
756756
Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ const Response = function (documents, options) {
102102 this . opCode = 1 ;
103103
104104 // Message fields
105- ( this . cursorId = options . cursorId ) ,
105+ ( ( this . cursorId = options . cursorId ) ,
106106 ( this . responseFlags = options . responseFlags ) ,
107107 ( this . startingFrom = options . startingFrom ) ,
108- ( this . numberReturned = options . numberReturned ) ;
108+ ( this . numberReturned = options . numberReturned ) ) ;
109109
110110 // Store documents
111111 this . documents = documents ;
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ class MockServer extends EventEmitter {
214214 * @param {function } [messageHandler] the optional message handler, if a type was specified
215215 */
216216 setMessageHandler ( type , messageHandler ) {
217- if ( typeof type === 'function' ) ( messageHandler = type ) , ( type = undefined ) ;
217+ if ( typeof type === 'function' ) ( ( messageHandler = type ) , ( type = undefined ) ) ;
218218
219219 if ( type == null ) {
220220 this . genericMessageHandler = messageHandler ;
You can’t perform that action at this time.
0 commit comments