1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use redirect keyword arguments instead of ">"

This commit is contained in:
NAKAMURA Usaku 2019-04-30 22:24:45 +09:00
parent 50872f4a15
commit dd942cd5b3
No known key found for this signature in database
GPG key ID: C5FE8AEA64F81259
2 changed files with 2 additions and 2 deletions

View file

@ -222,7 +222,7 @@ class << Merger
def svn_mode?
return @svn_mode if defined?(@svn_mode)
@svn_mode = system("svn info > #{IO::NULL} 2>&1")
@svn_mode = system("svn info", %i(out err) => IO::NULL)
end
# Prints the version of Ruby found in version.h

View file

@ -436,7 +436,7 @@ eom
next
end
if system("svn info #{RUBY_REPO_PATH&.shellescape} > #{IO::NULL} 2>&1") # SVN
if system("svn info #{RUBY_REPO_PATH&.shellescape}", %i(out err) => IO::NULL) # SVN
if log = find_svn_log("##@issue]") && /revision="(?<rev>\d+)/ =~ log
rev = "r#{rev}"
end