Skip to content

Commit 37b64b3

Browse files
committed
refactor: use new variable name
1 parent 3ce922d commit 37b64b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmap/connection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,11 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
484484

485485
command(
486486
ns: MongoDBNamespace,
487-
cmd: Document,
487+
command: Document,
488488
options: CommandOptions | undefined,
489489
callback: Callback
490490
): void {
491-
cmd = { ...cmd };
491+
let cmd = { ...command };
492492

493493
const readPreference = getReadPreference(options);
494494
const shouldUseOpMsg = supportsOpMsg(this);

0 commit comments

Comments
 (0)