Skip to content

Commit 8b2b750

Browse files
committed
chore: lint
1 parent b8a840b commit 8b2b750

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/sdam/topology.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

test/tools/mongodb-mock/src/request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

test/tools/mongodb-mock/src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)