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:
parent
2804e0ed3b
commit
f0fc15ade8
@ -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 }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user