summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-01 06:19:58 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-01 06:19:58 +0000
commit2ab596f9b889a552a3e3cd7ea75f85f7e85387ac (patch)
treebc66a44f36659dd362b770b6f9f500ced285a722 /lib
parente94087c279902302c826fa33747cb5998c0323d3 (diff)
Get rid of "shadowing outer local varable" warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@67153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/tmpdir.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index eaa67bc58e..bd09c58fad 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -84,9 +84,9 @@ class Dir
#
def self.mktmpdir(prefix_suffix=nil, *rest)
base = nil
- path = Tmpname.create(prefix_suffix || "d", *rest) {|path, _, _, d|
+ path = Tmpname.create(prefix_suffix || "d", *rest) {|pth, _, _, d|
base = d
- mkdir(path, 0700)
+ mkdir(pth, 0700)
}
if block_given?
begin