From 12613ea2b0160a9f147bf042fa8f2e24b6687d34 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 24 Apr 2023 20:27:31 -0600 Subject: [PATCH] pypi: unused arg Signed-off-by: William Woodruff --- Library/Homebrew/utils/pypi.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/pypi.rb b/Library/Homebrew/utils/pypi.rb index 87082e783e..03b4a56a99 100644 --- a/Library/Homebrew/utils/pypi.rb +++ b/Library/Homebrew/utils/pypi.rb @@ -226,7 +226,7 @@ module PyPI EOS end - found_packages = pip_report_to_packages(JSON.parse(pip_output), main_package, exclude_packages).uniq + found_packages = pip_report_to_packages(JSON.parse(pip_output), exclude_packages).uniq new_resource_blocks = "" found_packages.sort.each do |package| @@ -288,7 +288,7 @@ module PyPI name.gsub(/[-_.]+/, "-").downcase end - def self.pip_report_to_packages(report, main_package, exclude_packages) + def self.pip_report_to_packages(report, exclude_packages) return [] if report.blank? report["install"].map do |package|