Merge pull request #14628 from dduugg/upgrade-type

Enable typing in Homebrew::Upgrade
This commit is contained in:
Mike McQuaid 2023-02-15 14:58:32 +00:00 committed by GitHub
commit 933cf0bd78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# typed: false
# typed: true
# frozen_string_literal: true
require "reinstall"
@ -209,7 +209,7 @@ module Homebrew
ensure
# restore previous installation state if build failed
begin
linked_kegs.each(&:link) if linked_kegs.present? && !f.latest_version_installed?
linked_kegs&.each(&:link) unless formula.latest_version_installed?
rescue
nil
end

View File

@ -0,0 +1,5 @@
# typed: strict
module Homebrew::Upgrade
include Kernel
end