Remove unreachable warning.

This commit is contained in:
JBYoshi 2023-04-30 12:29:40 -05:00
parent 84fe93e5d7
commit 4935a8fbb2
No known key found for this signature in database
GPG Key ID: AE4430116622D05D

View File

@ -97,9 +97,7 @@ module Cask
command.run!("/bin/cp", args: ["-pR", "#{source}/*", "#{source}/.*", "#{target}/"],
sudo: true)
end
unless Quarantine.copy_xattrs(source, target)
opoo "Unable to transfer extended attributes on the root directory"
end
Quarantine.copy_xattrs(source, target)
source.rmtree
elsif target.dirname.writable?
FileUtils.move(source, target)