Remove unnecessary early return

Iterating over an empty list is a no-op so we can remove this early
return.
This commit is contained in:
Jack Nagel 2015-01-22 17:36:31 -05:00
parent 2804e0ed3b
commit f0fc15ade8

View File

@ -761,7 +761,6 @@ class Formula
def prepare_patches
active_spec.add_legacy_patches(patches)
return if patchlist.empty?
patchlist.grep(DATAPatch) { |p| p.path = path }