SIGN IN SIGN UP
Homebrew / brew UNCLAIMED

🍺 The missing package manager for macOS (or Linux)

0 0 185 Ruby

perf: replace inject("+") with sum and use filter_map in utils

- Replace `results.values.inject("+")` with `results.values.sum` in
  analytics.rb (two call sites)
- Replace chained `.reject(&:build?).reject(&:test?).map(&:to_formula)`
  with `.filter_map { |d| d.to_formula if !d.build? && !d.test? }` in
  topological_hash.rb
D
Douglas Eichelberger committed
9d32bcb4d0c2601533174590c16d3ca21311b58d
Parent: 9eeb71a