diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 12:54:26 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 12:54:26 +0000 |
commit | 6cb2d4b970827a77d5c1167647b0eb1e5a7b3888 (patch) | |
tree | 8384ee17cccc89ae59697189800a4dac5fe64498 /lib | |
parent | 84afd795b818062208e2148e8d08c8cdf75300ac (diff) |
fix r62970 as r62990
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@63007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tmpdir.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index 7c2651efbb..7c0ce3a7f0 100644 --- a/lib/tmpdir.rb +++ b/lib/tmpdir.rb @@ -114,9 +114,9 @@ class Dir end n = nil prefix, suffix = basename - prefix = prefix.delete("#{File::SEPARATOR}#{File::ALT_SEPARATOR}") prefix = (String.try_convert(prefix) or raise ArgumentError, "unexpected prefix: #{prefix.inspect}") + prefix = prefix.delete("#{File::SEPARATOR}#{File::ALT_SEPARATOR}") suffix &&= (String.try_convert(suffix) or raise ArgumentError, "unexpected suffix: #{suffix.inspect}") suffix &&= suffix.delete("#{File::SEPARATOR}#{File::ALT_SEPARATOR}") |