Leftover of @reitermarkus's comments
Simplify a condition
This commit is contained in:
parent
ab62be5345
commit
96187ade92
@ -458,8 +458,7 @@ module Hbc
|
|||||||
gain_permissions_remove(backup_path) if !backup_path.nil? && backup_path.exist?
|
gain_permissions_remove(backup_path) if !backup_path.nil? && backup_path.exist?
|
||||||
|
|
||||||
# Homebrew-Cask metadata
|
# Homebrew-Cask metadata
|
||||||
if backup_metadata_path.respond_to?(:children) &&
|
if backup_metadata_path.directory?
|
||||||
backup_metadata_path.exist?
|
|
||||||
backup_metadata_path.children.each do |subdir|
|
backup_metadata_path.children.each do |subdir|
|
||||||
unless PERSISTENT_METADATA_SUBDIRS.include?(subdir.basename)
|
unless PERSISTENT_METADATA_SUBDIRS.include?(subdir.basename)
|
||||||
gain_permissions_remove(subdir)
|
gain_permissions_remove(subdir)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user