Skip to content

Commit

Permalink
Initialize lvars as empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Mar 6, 2023
1 parent 5e45612 commit e63106f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/cmd/update-report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ def dump(updated_formula_report: true)
dump_deleted_formula_report(report_all)
dump_deleted_cask_report(report_all)

outdated_formulae = nil
outdated_casks = nil
outdated_formulae = []
outdated_casks = []

if updated_formula_report && report_all
dump_modified_formula_report
Expand Down Expand Up @@ -671,7 +671,7 @@ def dump(updated_formula_report: true)
return if outdated_formulae.blank? && outdated_casks.blank?

outdated_formulae = outdated_formulae.count
outdated_casks = T.must(outdated_casks).count
outdated_casks = outdated_casks.count

update_pronoun = if (outdated_formulae + outdated_casks) == 1
"it"
Expand Down

0 comments on commit e63106f

Please sign in to comment.