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
# contains it.
group_id = if HOMEBREW_BREW_FILE.grpowned?
HOMEBREW_BREW_FILE.stat.gid
else
Process.gid
end
HOMEBREW_BREW_FILE.stat.gid
else
Process.gid
end
begin
chown(nil, group_id, tmpdir)
rescue Errno::EPERM