Skip to content

Commit

Permalink
Remove unnecessary splats
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Apr 11, 2011
1 parent ba9bfd1 commit dcc91f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/redis/connection/command_helper.rb
Expand Up @@ -4,7 +4,7 @@ module CommandHelper

COMMAND_DELIMITER = "\r\n"

def build_command(*args)
def build_command(args)
command = []
command << "*#{args.size}"

Expand All @@ -16,7 +16,7 @@ def build_command(*args)

# Trailing delimiter
command << ""
command
command.join(COMMAND_DELIMITER)
end

protected
Expand Down
2 changes: 1 addition & 1 deletion lib/redis/connection/ruby.rb
Expand Up @@ -55,7 +55,7 @@ def timeout=(usecs)
end

def write(command)
@sock.write(build_command(*command).join(COMMAND_DELIMITER))
@sock.write(build_command(command))
end

def read
Expand Down
2 changes: 1 addition & 1 deletion lib/redis/connection/synchrony.rb
Expand Up @@ -85,7 +85,7 @@ def disconnect
end

def write(command)
@connection.send(build_command(*command).join(COMMAND_DELIMITER))
@connection.send(build_command(command))
end

def read
Expand Down

0 comments on commit dcc91f0

Please sign in to comment.