Skip to content

Commit

Permalink
Merge c677c0e into 807cfc0
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-Sieb committed Jan 9, 2023
2 parents 807cfc0 + c677c0e commit 7327b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class Redis extends Commander {
get mode(): "normal" | "subscriber" | "monitor" {
return this.options.monitor
? "monitor"
: this.condition.subscriber
: this.condition && this.condition.subscriber
? "subscriber"
: "normal";
}
Expand Down

0 comments on commit 7327b4b

Please sign in to comment.