Skip to content

Commit

Permalink
Use redirect keyword arguments instead of ">"
Browse files Browse the repository at this point in the history
  • Loading branch information
unak committed Apr 30, 2019
1 parent 50872f4 commit dd942cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tool/merger.rb
Expand Up @@ -222,7 +222,7 @@ def commit(file)

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
Expand Down
2 changes: 1 addition & 1 deletion tool/redmine-backporter.rb
Expand Up @@ -436,7 +436,7 @@ class << @changesets
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
Expand Down

0 comments on commit dd942cd

Please sign in to comment.