File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -380,15 +380,15 @@ RedisClient.prototype.on_ready = function () {
380
380
381
381
RedisClient . prototype . on_info_cmd = function ( err , res ) {
382
382
if ( err ) {
383
- /* ignore if the command info is not existing */
384
- if ( err . message === "ERR unknown command 'info'" ) {
385
- this . server_info = { } ;
386
- this . on_ready ( ) ;
387
- return ;
383
+ /* istanbul ignore if: the command info is not existing on some servers for security reasons */
384
+ if ( err . message === "ERR unknown command 'info'" ) {
385
+ this . server_info = { } ;
386
+ this . on_ready ( ) ;
387
+ return ;
388
388
} else {
389
- err . message = 'Ready check failed: ' + err . message ;
390
- this . emit ( 'error' , err ) ;
391
- return ;
389
+ err . message = 'Ready check failed: ' + err . message ;
390
+ this . emit ( 'error' , err ) ;
391
+ return ;
392
392
}
393
393
}
394
394
You can’t perform that action at this time.
0 commit comments