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) {
617617 this . emit ( "error" , new Error ( "subscriptions are active but got an invalid reply: " + reply ) ) ;
618618 return ;
619619 }
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 ) {
621623 if ( Buffer . isBuffer ( reply ) ) {
622624 reply = reply . toString ( ) ;
623625 }
@@ -629,7 +631,6 @@ RedisClient.prototype.return_reply = function (reply) {
629631 return elem . replace ( / \\ " / g, '"' ) ;
630632 } ) ;
631633 this . emit ( "monitor" , timestamp , args ) ;
632- /* istanbul ignore else: this is a safety check that we should not be able to trigger */
633634 } else {
634635 var err = new Error ( "node_redis command queue state error. If you can reproduce this, please report it." ) ;
635636 err . command_obj = command_obj ;
You can’t perform that action at this time.
0 commit comments