mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
tool: fixed shadowing variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
36bc8c0b28
commit
ecedebab2c
3 changed files with 5 additions and 5 deletions
|
@ -67,6 +67,6 @@ class Checksum
|
|||
def self.update(argv)
|
||||
k = new(VPath.new)
|
||||
k.source, k.target, *argv = k.def_options.parse(*argv)
|
||||
k.update {|k| yield(k, *argv)}
|
||||
k.update {|_| yield(_, *argv)}
|
||||
end
|
||||
end
|
||||
|
|
|
@ -590,7 +590,7 @@ install?(:local, :comm, :man) do
|
|||
STDIN.reopen(f)
|
||||
begin
|
||||
destfile << suffix
|
||||
IO.popen(compress) {|f| f.read}
|
||||
IO.popen(compress, &:read)
|
||||
ensure
|
||||
STDIN.reopen(stdin)
|
||||
stdin.close
|
||||
|
|
|
@ -145,7 +145,7 @@ class ActionMap
|
|||
else
|
||||
b = $1.to_i(16)
|
||||
e = $2.to_i(16)
|
||||
b.upto(e) {|c| set[c] = true }
|
||||
b.upto(e) {|_| set[_] = true }
|
||||
end
|
||||
}
|
||||
i = nil
|
||||
|
@ -297,10 +297,10 @@ class ActionMap
|
|||
raise ArgumentError, "ambiguous pattern: #{prefix}" if min.length != prefix.length
|
||||
h[action] = true
|
||||
end
|
||||
region_rects.each {|min, max, action|
|
||||
for min, _, action in region_rects
|
||||
raise ArgumentError, "ambiguous pattern: #{prefix}" if !min.empty?
|
||||
h[action] = true
|
||||
}
|
||||
end
|
||||
tree = Action.new(block.call(prefix, h.keys))
|
||||
h.clear
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue