cmd/update-report: fix Style/MapCompactWithConditionalBlock
This commit is contained in:
parent
96dfa631db
commit
f77722cfd3
@ -608,9 +608,7 @@ class ReporterHub
|
|||||||
private
|
private
|
||||||
|
|
||||||
def dump_new_formula_report
|
def dump_new_formula_report
|
||||||
formulae = select_formula_or_cask(:A).sort.map do |name|
|
formulae = select_formula_or_cask(:A).sort.reject { |name| installed?(name) }
|
||||||
name unless installed?(name)
|
|
||||||
end.compact
|
|
||||||
|
|
||||||
output_dump_formula_or_cask_report "New Formulae", formulae
|
output_dump_formula_or_cask_report "New Formulae", formulae
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user