Skip to content

Commit

Permalink
Remove needless has_key?
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 27, 2012
1 parent ef4ed6e commit 4138dbb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/grntest/tester.rb
Expand Up @@ -1485,10 +1485,8 @@ def extract_command_info(command_line)
if @current_command == "dump"
@output_type = "groonga-command"
else
@output_type = @context.output_type
if @current_arguments.has_key?(:output_type)
@output_type = @current_arguments[:output_type]
end
@output_type = @current_arguments[:output_type]
@output_type ||= @context.output_type
end
end

Expand Down

0 comments on commit 4138dbb

Please sign in to comment.