Skip to content

Commit 8b24251

Browse files
committed
fix: tls might not be provided
1 parent df5d555 commit 8b24251

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
@@ -766,10 +766,9 @@ export default class RedisClient<
766766
const socket = this.#options.socket;
767767
assert(socket !== undefined);
768768
const { tls, host } = socket as RedisTcpSocketOptions;
769-
assert(tls !== undefined);
770769
assert(host !== undefined);
771770
commands.push({
772-
cmd: await EnterpriseMaintenanceManager.getHandshakeCommand(tls, host),
771+
cmd: await EnterpriseMaintenanceManager.getHandshakeCommand(!!tls, host),
773772
errorHandler: (err: Error) => {
774773
dbgMaintenance("Maintenance handshake failed: ", err);
775774
}

0 commit comments

Comments
 (0)