diff --git a/lib/pronto/runners.rb b/lib/pronto/runners.rb index 920a54d2..cf4ddf67 100644 --- a/lib/pronto/runners.rb +++ b/lib/pronto/runners.rb @@ -28,9 +28,10 @@ def run(patches) def reject_excluded(excluded_files, patches) return patches unless excluded_files.any? - patches.reject do |patch| + patches.reject! do |patch| excluded_files.include?(patch.new_file_full_path.to_s) end + patches end def exceeds_max?(warnings)