utils/pypi: improve style

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Michael Cho 2024-02-27 13:32:52 -05:00 committed by GitHub
parent 31533cff05
commit b59921d174
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -274,7 +274,7 @@ module PyPI
# remove packages from the exclude list if we've explicitly requested them as an extra package
exclude_packages.delete_if { |package| extra_packages.include?(package) }
input_packages = main_package.nil? ? [] : [main_package]
input_packages = Array(main_package)
extra_packages.each do |extra_package|
if !extra_package.valid_pypi_package? && !ignore_non_pypi_packages
odie "\"#{extra_package}\" is not available on PyPI."