Navigation Menu

Skip to content

Commit

Permalink
Reduce scope
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 27, 2017
1 parent 5f3503a commit 0ad23b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/groonga/client/command-line/groonga-client-index-check.rb
Expand Up @@ -30,11 +30,10 @@ def initialize
@port = 10041
@check_missing_source = false
@check_index_integrity = false
@target = false
end

def run(argv)
@target = parse_command_line(argv)
targets = parse_command_line(argv)

@client = Client.new(:url => @url,
:protocol => @protocol,
Expand All @@ -44,7 +43,7 @@ def run(argv)
options = {
:check_missing_source => @check_missing_source,
:check_index_integrity => @check_index_integrity,
:target => @target
:target => targets
}
checker = Checker.new(@client, options)
checker.check
Expand Down

0 comments on commit 0ad23b7

Please sign in to comment.