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 () {
380380
381381RedisClient . prototype . on_info_cmd = function ( err , res ) {
382382 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 ;
388388 } 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 ;
392392 }
393393 }
394394
You can’t perform that action at this time.
0 commit comments