From 2631474f25fdd2b98d74946031e4baa6d451083c Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 11 Apr 2017 16:35:18 +0200 Subject: [PATCH] Fix `brew cask audit` not working without argument. --- Library/Homebrew/cask/lib/hbc/scopes.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/scopes.rb b/Library/Homebrew/cask/lib/hbc/scopes.rb index db12409e54..149c2c3435 100644 --- a/Library/Homebrew/cask/lib/hbc/scopes.rb +++ b/Library/Homebrew/cask/lib/hbc/scopes.rb @@ -6,8 +6,7 @@ module Hbc module ClassMethods def all - @all_casks ||= {} - all_tokens.map { |t| @all_casks[t] ||= load(t) } + all_tokens.map(&CaskLoader.public_method(:load)) end def all_tapped_cask_dirs