extend/fileutils: fix Rubocop warnings.

This commit is contained in:
Mike McQuaid 2016-09-11 17:53:00 +01:00
parent fb3bec8d70
commit df5605fa01

View File

@ -60,10 +60,10 @@ module FileUtils
# > When a new file is created, it is given the group of the directory which # > When a new file is created, it is given the group of the directory which
# contains it. # contains it.
group_id = if HOMEBREW_BREW_FILE.grpowned? group_id = if HOMEBREW_BREW_FILE.grpowned?
HOMEBREW_BREW_FILE.stat.gid HOMEBREW_BREW_FILE.stat.gid
else else
Process.gid Process.gid
end end
begin begin
chown(nil, group_id, tmpdir) chown(nil, group_id, tmpdir)
rescue Errno::EPERM rescue Errno::EPERM