Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
remove extra newline

remove extra newline
  • Loading branch information
aditi-khare-mongoDB committed Sep 6, 2024
1 parent 86e1a91 commit d892ccc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cmap/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
});

const buffer = Buffer.concat(await finalCommand.toBin());
if (this.socket.write(buffer)) return;

if (this.socket.write(buffer)) return;
return await once(this.socket, 'drain');
}

Expand Down
8 changes: 4 additions & 4 deletions src/write_concern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ interface CommandWriteConcernOptions {
* @see https://www.mongodb.com/docs/manual/reference/write-concern/
*/
export class WriteConcern {
/**
* Request acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.
* If w is 0 and is set on the command in the request, the server will not send a response.
*/
/**
* Request acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.
* If w is 0 and is set on a write operation, the server will not send a response.
*/
readonly w?: W;
/** Request acknowledgment that the write operation has been written to the on-disk journal */
readonly journal?: boolean;
Expand Down

0 comments on commit d892ccc

Please sign in to comment.