File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -617,7 +617,9 @@ RedisClient.prototype.return_reply = function (reply) {
617
617
this . emit ( "error" , new Error ( "subscriptions are active but got an invalid reply: " + reply ) ) ;
618
618
return ;
619
619
}
620
- } else if ( this . monitoring ) {
620
+ }
621
+ /* istanbul ignore else: this is a safety check that we should not be able to trigger */
622
+ else if ( this . monitoring ) {
621
623
if ( Buffer . isBuffer ( reply ) ) {
622
624
reply = reply . toString ( ) ;
623
625
}
@@ -629,7 +631,6 @@ RedisClient.prototype.return_reply = function (reply) {
629
631
return elem . replace ( / \\ " / g, '"' ) ;
630
632
} ) ;
631
633
this . emit ( "monitor" , timestamp , args ) ;
632
- /* istanbul ignore else: this is a safety check that we should not be able to trigger */
633
634
} else {
634
635
var err = new Error ( "node_redis command queue state error. If you can reproduce this, please report it." ) ;
635
636
err . command_obj = command_obj ;
You can’t perform that action at this time.
0 commit comments