From 36458b2356388a299d6b4a8b1d1053baf910efae Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 27 Jul 2020 11:50:40 +0200 Subject: [PATCH] Remove unnecessary check. --- Library/Homebrew/patch.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 64ca28f97f..f2a92a0616 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -160,8 +160,7 @@ class ExternalPatch end end rescue ErrorDuringExecution => e - raise unless (f = resource.owner&.owner) - + f = resource.owner.owner cmd, *args = e.cmd raise BuildError.new(f, cmd, args, ENV.to_hash) end