filter out packages only when a limit is set
This commit is contained in:
parent
0021ed45d0
commit
5d9e1f2bc7
@ -45,7 +45,7 @@ module Repology
|
||||
last_package_index = outdated_packages.size - 1
|
||||
end
|
||||
|
||||
outdated_packages = outdated_packages.first(limit) if outdated_packages.size > limit
|
||||
outdated_packages = outdated_packages.first(limit) if !limit.nil? && outdated_packages.size > limit
|
||||
|
||||
puts "#{outdated_packages.size} outdated #{"package".pluralize(outdated_packages.size)} found"
|
||||
puts
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user