Rename memoized variable

This commit is contained in:
Connor Mann 2021-05-20 15:10:20 -04:00
parent b72f5ef353
commit 6f005caf07

View File

@ -227,7 +227,7 @@ module Homebrew
sig { returns(T::Array[Keg]) }
def to_latest_kegs
@to_default_kegs ||= begin
@to_latest_kegs ||= begin
to_formulae_and_casks(only: :formula, method: :latest_kegs).freeze
rescue NoSuchKegError => e
if (reason = MissingFormula.suggest_command(e.name, "uninstall"))