From 4935a8fbb29a23799bc8b6d54591c561172df0c2 Mon Sep 17 00:00:00 2001 From: JBYoshi <12983479+JBYoshi@users.noreply.github.com> Date: Sun, 30 Apr 2023 12:29:40 -0500 Subject: [PATCH] Remove unreachable warning. --- Library/Homebrew/cask/artifact/moved.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/cask/artifact/moved.rb b/Library/Homebrew/cask/artifact/moved.rb index 41bf8a5944..48861a0f61 100644 --- a/Library/Homebrew/cask/artifact/moved.rb +++ b/Library/Homebrew/cask/artifact/moved.rb @@ -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)