Skip to content

Commit dde8250

Browse files
committed
chore: cleanup
1 parent 79acc71 commit dde8250

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

src/cursor/abstract_cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Readable, Transform } from 'stream';
22

33
import { type BSONSerializeOptions, type Document, Long, pluckBSONSerializeOptions } from '../bson';
4-
import { CursorResponse } from '../cmap/wire_protocol/responses';
4+
import { type CursorResponse } from '../cmap/wire_protocol/responses';
55
import {
66
type AnyError,
77
MongoAPIError,

src/operations/get_more.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Document, Long } from '../bson';
1+
import type { Long } from '../bson';
22
import { CursorResponse } from '../cmap/wire_protocol/responses';
33
import { MongoRuntimeError } from '../error';
44
import type { Server } from '../sdam/server';
@@ -56,7 +56,10 @@ export class GetMoreOperation extends AbstractOperation {
5656
* Although there is a server already associated with the get more operation, the signature
5757
* for execute passes a server so we will just use that one.
5858
*/
59-
override async execute(server: Server, _session: ClientSession | undefined): Promise<CursorResponse> {
59+
override async execute(
60+
server: Server,
61+
_session: ClientSession | undefined
62+
): Promise<CursorResponse> {
6063
if (server !== this.server) {
6164
throw new MongoRuntimeError('Getmore must run on the same server operation began on');
6265
}
@@ -97,12 +100,7 @@ export class GetMoreOperation extends AbstractOperation {
97100
...this.options
98101
};
99102

100-
return await server.command(
101-
this.ns,
102-
getMoreCmd,
103-
commandOptions,
104-
CursorResponse
105-
);
103+
return await server.command(this.ns, getMoreCmd, commandOptions, CursorResponse);
106104
}
107105
}
108106

test/integration/collection-management/collection.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { expect } from 'chai';
22

3-
import { Collection, type Db, isHello, type MongoClient, MongoServerError } from '../../mongodb';
4-
import * as mock from '../../tools/mongodb-mock/index';
3+
import { Collection, type Db, type MongoClient, MongoServerError } from '../../mongodb';
54
import { type FailPoint } from '../../tools/utils';
65
import { setupDatabase } from '../shared';
76

0 commit comments

Comments
 (0)