aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask
diff options
context:
space:
mode:
authorL. E. Segovia2017-11-24 01:21:30 +0000
committerL. E. Segovia2017-11-24 01:21:30 +0000
commite0be066f8b5f4ccb313ddcf6bba1d6fed3549b69 (patch)
tree6a3e0f0c6e3b0763cc4836e1ad1e18f6b291cf3f /Library/Homebrew/cask
parent7ee98eb421380afd45144ef8df1656cb22d4bb66 (diff)
downloadbrew-e0be066f8b5f4ccb313ddcf6bba1d6fed3549b69.tar.bz2
Load Casks only once (and fix style issues)
Diffstat (limited to 'Library/Homebrew/cask')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/upgrade.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
index b567f6d20..bd80ad690 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
@@ -12,8 +12,11 @@ module Hbc
end
def run
- outdated_casks = casks(alternative: -> { Hbc.installed.select { |cask|
- cask.outdated?(greedy?) } }).select { |cask| cask.outdated?(true) }
+ outdated_casks = casks(alternative: lambda {
+ Hbc.installed.select do |cask|
+ cask.outdated?(greedy?)
+ end
+ }).select { |cask| cask.outdated?(true) }
if outdated_casks.empty?
oh1 "No Casks to upgrade"