[rubygems/rubygems] Remove unnecessary FileUtils usage

All other `chmod` usages in the file use `File.chmod`, so keep it
consistent.

https://github.com/rubygems/rubygems/commit/3dc0cf8703
This commit is contained in:
David Rodríguez 2024-05-28 15:06:28 +02:00 committed by Hiroshi SHIBATA
parent dcc8e54234
commit 6db1c53fce

View File

@ -500,8 +500,7 @@ class Gem::Installer
dir_mode = options[:prog_mode] || (mode | 0o111)
unless dir_mode == mode
require "fileutils"
FileUtils.chmod dir_mode, bin_path
File.chmod dir_mode, bin_path
end
check_executable_overwrite filename