lib/pronto/runners.rb in pronto-0.8.1 vs lib/pronto/runners.rb in pronto-0.8.2

- old
+ new

@@ -26,12 +26,13 @@ private 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) @config.max_warnings && warnings.count >= @config.max_warnings end