extend/fileutils: fix Rubocop warnings.
This commit is contained in:
parent
fb3bec8d70
commit
df5605fa01
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user