lib/command/database/zset/zrange.js
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var withscores;
  if(args.length > 3) {
    withscores = ('' + args[3]).toLowerCase();
    if(withscores !== Constants.ZSET.WITHSCORES) {
      throw CommandSyntax;
    }
    args[3] = withscores;
  }
}
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var withscores;
  if(args.length > 3) {
    withscores = ('' + args[3]).toLowerCase();
    if(withscores !== Constants.ZSET.WITHSCORES) {
      throw CommandSyntax;
    }
    args[3] = withscores;
  }
}
function validate ( cmd , args , info ) { AbstractCommand . prototype . validate . apply ( this , arguments ) ; var withscores ; if ( args . length > 3 ) { withscores = ( '' + args [ 3 ] ) . toLowerCase ( ) ; if ( withscores !== Constants . ZSET . WITHSCORES ) { throw CommandSyntax ; } args [ 3 ] = withscores ; } }
Validate the ZRANGE command.
Validate the ZRANGE command .