Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a8cf1fa

Browse files
committedMay 20, 2025·
remove redundant parameter
1 parent d70448f commit a8cf1fa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎packages/client/lib/client/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ export default class RedisClient<
525525

526526
async #handshake(chainId: symbol, asap: boolean) {
527527
const promises = [];
528-
const commandsWithErrorHandlers = await this.#getHandshakeCommands(this.#selectedDB ?? 0);
528+
const commandsWithErrorHandlers = await this.#getHandshakeCommands();
529529

530530
if (asap) commandsWithErrorHandlers.reverse()
531531

@@ -542,9 +542,7 @@ export default class RedisClient<
542542
return promises;
543543
}
544544

545-
async #getHandshakeCommands(
546-
selectedDB: number
547-
): Promise<
545+
async #getHandshakeCommands(): Promise<
548546
Array<{ cmd: CommandArguments } & { errorHandler?: (err: Error) => void }>
549547
> {
550548
const commands = [];
@@ -617,7 +615,7 @@ export default class RedisClient<
617615
}
618616
}
619617

620-
if (selectedDB !== 0) {
618+
if (this.#selectedDB !== 0) {
621619
commands.push({ cmd: ['SELECT', this.#selectedDB.toString()] });
622620
}
623621

0 commit comments

Comments
 (0)
Please sign in to comment.