Skip to content

Commit

Permalink
fix(cluster): check for host presence in Upstash validation (#1102) f…
Browse files Browse the repository at this point in the history
…ixes #1101
  • Loading branch information
arsonik committed Feb 24, 2022
1 parent df2fa62 commit 54d4eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/redis-connection.ts
Expand Up @@ -76,8 +76,8 @@ export class RedisConnection extends EventEmitter {
}
}

private checkUpstashHost(host: string) {
if (host.endsWith('upstash.io')) {
private checkUpstashHost(host: string | undefined) {
if (host?.endsWith('upstash.io')) {
throw new Error(upstashMessage);
}
}
Expand Down

0 comments on commit 54d4eac

Please sign in to comment.