Remove unnecessary check.

This commit is contained in:
Markus Reiter 2020-07-27 11:50:40 +02:00
parent bdb986f572
commit 36458b2356

View File

@ -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