Skip to content

Commit 9113c16

Browse files
committed
fix: tls might not be provided
1 parent 7dfaf1a commit 9113c16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/client/lib/client/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,9 @@ export default class RedisClient<
747747
const socket = this.#options.socket;
748748
assert(socket !== undefined);
749749
const { tls, host } = socket as RedisTcpSocketOptions;
750-
assert(tls !== undefined);
751750
assert(host !== undefined);
752751
commands.push({
753-
cmd: await EnterpriseMaintenanceManager.getHandshakeCommand(tls, host),
752+
cmd: await EnterpriseMaintenanceManager.getHandshakeCommand(!!tls, host),
754753
errorHandler: (err: Error) => {
755754
dbgMaintenance("Maintenance handshake failed: ", err);
756755
}

0 commit comments

Comments
 (0)