From f0fc15ade8cdff5ad50da4a6d5b900ab3cd1dd90 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 22 Jan 2015 17:36:31 -0500 Subject: [PATCH] Remove unnecessary early return Iterating over an empty list is a no-op so we can remove this early return. --- Library/Homebrew/formula.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 91fae5fea6..1236eaa2fd 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -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 }