pypi: unused arg

Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
William Woodruff 2023-04-24 20:27:31 -06:00
parent 57af1abb6c
commit 12613ea2b0
No known key found for this signature in database

View File

@ -226,7 +226,7 @@ module PyPI
EOS EOS
end 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 = "" new_resource_blocks = ""
found_packages.sort.each do |package| found_packages.sort.each do |package|
@ -288,7 +288,7 @@ module PyPI
name.gsub(/[-_.]+/, "-").downcase name.gsub(/[-_.]+/, "-").downcase
end 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? return [] if report.blank?
report["install"].map do |package| report["install"].map do |package|