livecheck: rename variables for clarity

This commit is contained in:
Sam Ford 2020-12-12 10:29:25 -05:00
parent 7b14f7446d
commit d316b7c802
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -47,12 +47,12 @@ module Homebrew
def run_checks(formulae_and_casks_to_check, args) def run_checks(formulae_and_casks_to_check, args)
# Identify any non-homebrew/core taps in use for current formulae # Identify any non-homebrew/core taps in use for current formulae
non_core_taps = {} non_core_taps = {}
formulae_and_casks_to_check.each do |fc| formulae_and_casks_to_check.each do |formula_or_cask|
next if fc.tap.blank? next if formula_or_cask.tap.blank?
next if fc.tap.name == CoreTap.instance.name next if formula_or_cask.tap.name == CoreTap.instance.name
next if non_core_taps[fc.tap.name] next if non_core_taps[formula_or_cask.tap.name]
non_core_taps[fc.tap.name] = fc.tap non_core_taps[formula_or_cask.tap.name] = formula_or_cask.tap
end end
non_core_taps = non_core_taps.sort.to_h non_core_taps = non_core_taps.sort.to_h
@ -73,7 +73,7 @@ module Homebrew
has_a_newer_upstream_version = false has_a_newer_upstream_version = false
if args.json? && !args.quiet? && $stderr.tty? if args.json? && !args.quiet? && $stderr.tty?
total_formulae = if formulae_and_casks_to_check == Formula formulae_and_casks_total = if formulae_and_casks_to_check == Formula
formulae_and_casks_to_check.count formulae_and_casks_to_check.count
else else
formulae_and_casks_to_check.length formulae_and_casks_to_check.length
@ -84,7 +84,7 @@ module Homebrew
end end
progress = ProgressBar.create( progress = ProgressBar.create(
total: total_formulae, total: formulae_and_casks_total,
progress_mark: "#", progress_mark: "#",
remainder_mark: ".", remainder_mark: ".",
format: " %t: [%B] %c/%C ", format: " %t: [%B] %c/%C ",