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? def svn_mode?
return @svn_mode if defined?(@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 end
# Prints the version of Ruby found in version.h # Prints the version of Ruby found in version.h

View File

@ -436,7 +436,7 @@ eom
next next
end 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 if log = find_svn_log("##@issue]") && /revision="(?<rev>\d+)/ =~ log
rev = "r#{rev}" rev = "r#{rev}"
end end